fix: tomorrows note not showing up #20

This commit is contained in:
Johannes Millan 2017-11-21 20:41:19 +01:00
parent 72bbdb5315
commit 5e19230f24
2 changed files with 7 additions and 3 deletions

View file

@ -51,6 +51,7 @@
.constant('EV_PROJECT_CHANGED', 'EV_PROJECT_CHANGED')
.constant('LS_DEFAULTS', {
note: undefined,
tomorrowsNote: undefined,
theme: undefined,
currentTask: undefined,
currentProject: undefined,

View file

@ -5,7 +5,7 @@
* # dailySummary
*/
(function () {
(function() {
'use strict';
angular
@ -26,7 +26,7 @@
}
/* @ngInject */
function DailySummaryCtrl($rootScope, Tasks, TasksUtil, $mdDialog, Dialogs, $state, GitLog, IS_ELECTRON, $timeout, $scope) {
function DailySummaryCtrl($rootScope, Tasks, TasksUtil, $mdDialog, Dialogs, $state, GitLog, IS_ELECTRON, $timeout, $scope, AppStorage) {
const IPC_EVENT_SHUTDOWN = 'SHUTDOWN';
const SUCCESS_ANIMATION_DURATION = 500;
@ -44,7 +44,7 @@
vm.totalTimeSpentToday = Tasks.getTimeWorkedToday();
if ($rootScope.r.git && $rootScope.r.git.projectDir) {
GitLog.get($rootScope.r.git.projectDir).then(function (res) {
GitLog.get($rootScope.r.git.projectDir).then(function(res) {
vm.commitLog = res;
});
}
@ -62,6 +62,9 @@
Tasks.finishDay(vm.clearDoneTasks, vm.moveUnfinishedToBacklog);
// save everything
AppStorage.saveToLs();
if (IS_ELECTRON) {
$mdDialog.show(
$mdDialog.confirm()