diff options
Diffstat (limited to 'web/app/view/User.js')
-rw-r--r-- | web/app/view/User.js | 88 |
1 files changed, 46 insertions, 42 deletions
diff --git a/web/app/view/User.js b/web/app/view/User.js index 9eb0232f7..b642b5518 100644 --- a/web/app/view/User.js +++ b/web/app/view/User.js @@ -13,52 +13,56 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -(function () { - 'use strict'; - Ext.define('Traccar.view.User', { - extend: 'Ext.grid.Panel', - xtype: 'userView', +Ext.define('Traccar.view.User', { + extend: 'Ext.grid.Panel', + xtype: 'userView', - requires: [ - 'Traccar.view.UserController' - ], + requires: [ + 'Traccar.view.UserController' + ], - controller: 'user', - store: 'Users', + controller: 'user', + store: 'Users', - selType: 'rowmodel', + selType: 'rowmodel', - tbar: [{ - text: Strings.sharedAdd, - handler: 'onAddClick', - reference: 'deviceAddButton' - }, { - text: Strings.sharedEdit, - disabled: true, - handler: 'onEditClick', - reference: 'userEditButton' - }, { - text: Strings.sharedRemove, - disabled: true, - handler: 'onRemoveClick', - reference: 'userRemoveButton' - }, { - text: Strings.deviceTitle, - disabled: true, - handler: 'onDevicesClick', - reference: 'userDevicesButton' - }], + tbar: [{ + text: Strings.sharedAdd, + handler: 'onAddClick', + reference: 'deviceAddButton' + }, { + text: Strings.sharedEdit, + disabled: true, + handler: 'onEditClick', + reference: 'userEditButton' + }, { + text: Strings.sharedRemove, + disabled: true, + handler: 'onRemoveClick', + reference: 'userRemoveButton' + }, { + text: Strings.deviceTitle, + disabled: true, + handler: 'onDevicesClick', + reference: 'userDevicesButton' + }], - listeners: { - selectionchange: 'onSelectionChange' - }, + listeners: { + selectionchange: 'onSelectionChange' + }, - columns: [ - {text: Strings.userName, dataIndex: 'name', flex: 1}, - {text: Strings.userEmail, dataIndex: 'email', flex: 1}, - {text: Strings.userAdmin, dataIndex: 'admin', flex: 1} - ] - }); - -})(); + columns: [{ + text: Strings.userName, + dataIndex: 'name', + flex: 1 + }, { + text: Strings.userEmail, + dataIndex: 'email', + flex: 1 + }, { + text: Strings.userAdmin, + dataIndex: 'admin', + flex: 1 + }] +}); |