From 4d8b804203888c920855758c06a7574536efdff5 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Sat, 23 Sep 2023 20:26:23 -0600 Subject: [PATCH] Add function that can be used to open activity from task view #247 --- src/todoist-shortcuts.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/todoist-shortcuts.js b/src/todoist-shortcuts.js index dbedbfd..7a96043 100644 --- a/src/todoist-shortcuts.js +++ b/src/todoist-shortcuts.js @@ -1660,6 +1660,13 @@ }); } + // eslint-disable-next-line no-unused-vars + function taskViewActivity() { + withTaskViewMoreMenu((menu) => { + withUniqueTag(menu, 'div', matchingText('View task activity'), click); + }); + } + function withTaskViewMoreMenu(f) { withUnique(document, TASK_VIEW_SELECTOR, (taskView) => { let overflowMenu = getTaskViewMoreMenu();