From 7ae587d430e793bbd9afd5607f7d266816af127a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 3 Jul 2016 13:00:03 +1200 Subject: Add dialog for geofence area selection --- web/app/view/GeofenceDialog.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'web/app/view/GeofenceDialog.js') 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' + }] }); -- cgit v1.2.3