Skip to content

Commit

Permalink
Add function that can be used to open activity from task view #247
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Sep 24, 2023
1 parent f04f4a7 commit 4d8b804
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/todoist-shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4d8b804

Please sign in to comment.