mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 18:50:07 +00:00
refactor(chromeExtension): daily planner pre check
This commit is contained in:
parent
1cf304d313
commit
0a7c802d57
1 changed files with 3 additions and 2 deletions
|
|
@ -25,14 +25,15 @@
|
|||
}
|
||||
|
||||
/* @ngInject */
|
||||
function DailyPlannerCtrl($rootScope, $window, $scope, Tasks, TasksUtil, Dialogs, $state, Jira, $filter, IS_ELECTRON, Git, $mdDialog, EV_PROJECT_CHANGED) {
|
||||
function DailyPlannerCtrl(IS_ELECTRON, $rootScope, $window, $scope, Tasks, TasksUtil, Dialogs, $state, Jira, $filter, Git, $mdDialog, EV_PROJECT_CHANGED) {
|
||||
let vm = this;
|
||||
const _ = $window._;
|
||||
|
||||
vm.refreshRemoteTasks = () => {
|
||||
vm.taskSuggestions = [];
|
||||
|
||||
if (IS_ELECTRON && Jira.isSufficientJiraSettings()) {
|
||||
const preCheckFailed = Jira.preCheck();
|
||||
if (!preCheckFailed) {
|
||||
Jira.checkForNewAndAddToBacklog();
|
||||
|
||||
Jira.getSuggestions().then((res) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue