(js) Update alarms after dragging an event
This commit is contained in:
parent
fb873fcae9
commit
220fb3d607
|
@ -6,8 +6,8 @@
|
||||||
/**
|
/**
|
||||||
* @ngInject
|
* @ngInject
|
||||||
*/
|
*/
|
||||||
CalendarListController.$inject = ['$rootScope', '$scope', '$timeout', '$state', '$mdDialog', 'sgHotkeys', 'sgFocus', 'Dialog', 'Preferences', 'CalendarSettings', 'Calendar', 'Component'];
|
CalendarListController.$inject = ['$rootScope', '$scope', '$timeout', '$state', '$mdDialog', 'sgHotkeys', 'sgFocus', 'Dialog', 'Preferences', 'CalendarSettings', 'Calendar', 'Component', 'Alarm'];
|
||||||
function CalendarListController($rootScope, $scope, $timeout, $state, $mdDialog, sgHotkeys, focus, Dialog, Preferences, CalendarSettings, Calendar, Component) {
|
function CalendarListController($rootScope, $scope, $timeout, $state, $mdDialog, sgHotkeys, focus, Dialog, Preferences, CalendarSettings, Calendar, Component, Alarm) {
|
||||||
var vm = this, hotkeys = [];
|
var vm = this, hotkeys = [];
|
||||||
|
|
||||||
vm.component = Component;
|
vm.component = Component;
|
||||||
|
@ -231,6 +231,7 @@
|
||||||
// Immediately perform the adjustments
|
// Immediately perform the adjustments
|
||||||
component.$adjust(params).then(function() {
|
component.$adjust(params).then(function() {
|
||||||
$rootScope.$emit('calendars:list');
|
$rootScope.$emit('calendars:list');
|
||||||
|
Alarm.getAlarms();
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
onComponentAdjustError(response, component, params);
|
onComponentAdjustError(response, component, params);
|
||||||
}).finally(function() {
|
}).finally(function() {
|
||||||
|
|
Loading…
Reference in a new issue