minor fixes

This commit is contained in:
Johannes Millan 2017-02-12 21:22:24 +01:00
parent 4222c02290
commit a082e5eb65
2 changed files with 5 additions and 3 deletions

View file

@ -167,7 +167,9 @@
/* @ngInject */
function initPollGitTaskUpdates($localStorage, Git, $interval, GIT_UPDATE_POLL_INTERVAL) {
// one initial
Git.checkAndUpdateTasks($localStorage.tasks);
if ($localStorage.git.projectDir && $localStorage.git.repo) {
Git.checkAndUpdateTasks($localStorage.tasks);
}
$interval(() => {
if ($localStorage.git.projectDir && $localStorage.git.repo) {
@ -178,7 +180,7 @@
/* @ngInject */
function showWelcomeDialog($localStorage, Dialogs) {
if ($localStorage.isShowWelcomeDialog) {
if ($localStorage.uiHelper.isShowWelcomeDialog) {
Dialogs('WELCOME', undefined, true);
}
}

View file

@ -19,7 +19,6 @@
'isShowWelcomeDialog'
])
.constant('LS_DEFAULTS', {
isShowWelcomeDialog: true,
note: undefined,
theme: undefined,
currentTask: undefined,
@ -64,6 +63,7 @@
},
// non setting variables which are simply saved where they are entered
uiHelper: {
isShowWelcomeDialog: true,
dailyTaskExportSettings: {
separateBy: ', ',
separateFieldsBy: '',