(js) Improve toast of event alarm

pull/225/head
Francis Lachapelle 2016-10-20 21:40:45 -04:00
parent b301c5ec4c
commit 9ee271c278
1 changed files with 4 additions and 3 deletions

View File

@ -66,7 +66,7 @@
'<md-toast>',
' <div class="md-toast-content">',
' <md-input-container>',
' <label style="color: white;">' + data.summary + '</label>',
' <label style="color: white;">{{ summary }}</label>',
' <md-select ng-model="reminder">',
' <md-option value=5>',
l('5 minutes'),
@ -109,8 +109,9 @@
/**
* @ngInject
*/
AlarmController.$inject = ['scope', '$mdToast', 'url'];
function AlarmController(scope, $mdToast, url) {
AlarmController.$inject = ['scope', '$sanitize', '$mdToast', 'url'];
function AlarmController(scope, $sanitize, $mdToast, url) {
scope.summary = $sanitize(data.summary);
scope.reminder = '10';
scope.cancel = function() {
$mdToast.hide();