Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-11-19 12:54:26 +0300
committerJoas Schilling <coding@schilljs.com>2019-11-19 12:54:26 +0300
commit7d60f536b31ae331294af77c4c966c40bafffb1d (patch)
treef7dc5863a749c0637043b1b3d356bc91f6378997 /js/admin.js
parent103116d6679354515ad91c80309be978d42b5733 (diff)
Use public Toast api for errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js/admin.js')
-rw-r--r--js/admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/admin.js b/js/admin.js
index 2899c6c..b1285bd 100644
--- a/js/admin.js
+++ b/js/admin.js
@@ -46,7 +46,7 @@ $(document).ready(function() {
},
error: function(xhr) {
$button.attr('disabled', false);
- OC.Notification.showTemporary(t('survey_client', 'An error occurred while sending your report.'));
+ OCP.Toast.error(t('survey_client', 'An error occurred while sending your report.'));
var response = xhr.responseJSON;
$section.find('.last_report').text(JSON.stringify(response.ocs.data, undefined, 4));