super-productivity/app/scripts/dialogs/dialogs-constant.js
2017-01-04 18:29:55 +01:00

42 lines
1.1 KiB
JavaScript

/**
* @ngdoc constant
* @name superProductivity.Dialogs
* @description
* # Dialogs
* Constant in the superProductivity.
*/
(function () {
'use strict';
angular
.module('superProductivity')
.constant('DIALOGS', {
DEFAULTS: {
clickOutsideToClose: true,
controllerAs: 'vm',
bindToController: true
},
CREATE_TASK: {
title: 'Out of undone tasks',
textContent: 'You run out of tasks. Go on and create some new ones if you like.',
ok: 'Got it!'
},
WAS_IDLE: {
controller: 'WasIdleCtrl',
templateUrl: 'scripts/dialogs/was-idle/was-idle-c.html'
},
ADD_TASK:{
controller: 'AddTaskCtrl',
templateUrl: 'scripts/dialogs/add-task/add-task-c.html'
},
TASK_SELECTION: {
controller: 'TaskSelectionCtrl',
templateUrl: 'scripts/dialogs/task-selection/task-selection-c.html'
},
TIME_ESTIMATE: {
controller: 'TimeEstimateCtrl',
templateUrl: 'scripts/dialogs/time-estimate/time-estimate-c.html'
}
});
})();