diff options
author | Tim Mylemans <tim@aimproductions.be> | 2016-03-30 23:02:23 +0300 |
---|---|---|
committer | Tim Mylemans <tim@aimproductions.be> | 2016-03-30 23:02:23 +0300 |
commit | 7e766c7dba917361e1624cf04b66019b949d5eb2 (patch) | |
tree | d1d99f7dcf43993454a9f3d63db5299569f3a49e /Duplicati/Server/webroot/ngax/scripts/services/DialogService.js | |
parent | fa61b9c8b8eba015e9073906b56c536f56d38a89 (diff) |
Improved the ngax theme to improve handling 401 API responses
Diffstat (limited to 'Duplicati/Server/webroot/ngax/scripts/services/DialogService.js')
-rw-r--r-- | Duplicati/Server/webroot/ngax/scripts/services/DialogService.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js b/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js index 24bc32129..88d270e97 100644 --- a/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js +++ b/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js @@ -51,6 +51,14 @@ backupApp.service('DialogService', function() { }); }; + this.accept = function(message, callback) { + return this.enqueueDialog({ + 'message': message, + 'callback': callback, + 'buttons': ['OK'] + }); + }; + this.dialog = function(title, message, buttons, callback, onshow) { return this.enqueueDialog({ 'message': message, @@ -78,4 +86,10 @@ backupApp.service('DialogService', function() { } }; + this.dismissAll = function() { + while (state.CurrentItem != null){ + this.dismissCurrent(); + } + }; + });
\ No newline at end of file |