aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/GeofenceDialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/GeofenceDialog.js')
-rw-r--r--web/app/view/GeofenceDialog.js22
1 files changed, 18 insertions, 4 deletions
diff --git a/web/app/view/GeofenceDialog.js b/web/app/view/GeofenceDialog.js
index a3100a797..fa3bbe87f 100644
--- a/web/app/view/GeofenceDialog.js
+++ b/web/app/view/GeofenceDialog.js
@@ -15,13 +15,13 @@
*/
Ext.define('Traccar.view.GeofenceDialog', {
- extend: 'Traccar.view.BaseEditDialog',
+ extend: 'Traccar.view.BaseDialog',
requires: [
- 'Traccar.view.BaseEditDialogController'
+ 'Traccar.view.GeofenceDialogController'
],
- controller: 'baseEditDialog',
+ controller: 'geofenceDialog',
title: Strings.sharedGeofence,
items: {
@@ -35,5 +35,19 @@ Ext.define('Traccar.view.GeofenceDialog', {
name: 'description',
fieldLabel: Strings.sharedDescription
}]
- }
+ },
+
+ buttons: [{
+ text: Strings.sharedArea,
+ glyph: 'xf21d@FontAwesome',
+ handler: 'onAreaClick'
+ }, {
+ xtype: 'tbfill'
+ }, {
+ text: Strings.sharedSave,
+ handler: 'onSaveClick'
+ }, {
+ text: Strings.sharedCancel,
+ handler: 'closeView'
+ }]
});