mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 02:30:03 +00:00
fix: tomorrows note not showing up #20
This commit is contained in:
parent
72bbdb5315
commit
5e19230f24
2 changed files with 7 additions and 3 deletions
|
|
@ -51,6 +51,7 @@
|
|||
.constant('EV_PROJECT_CHANGED', 'EV_PROJECT_CHANGED')
|
||||
.constant('LS_DEFAULTS', {
|
||||
note: undefined,
|
||||
tomorrowsNote: undefined,
|
||||
theme: undefined,
|
||||
currentTask: undefined,
|
||||
currentProject: undefined,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue