aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 0d41fc87..c0a69457 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -185,5 +185,14 @@ Ext.define('Traccar.Application', {
} else {
Ext.Msg.alert(Strings.errorTitle, Strings.errorConnection);
}
+ },
+
+ showToast: function (message, title) {
+ Ext.toast({
+ html: message,
+ title: title,
+ width: Traccar.Style.toastWidth,
+ align: 'br'
+ });
}
});