From 0ea22d28252eeee1f12e38914855b34004042fcd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 5 Nov 2016 01:10:31 +1300 Subject: Add icons in the settings menu --- web/app/view/SettingsMenu.js | 14 ++++++++++++-- web/app/view/State.js | 2 +- web/app/view/Users.js | 18 ++++++++++++------ 3 files changed, 25 insertions(+), 9 deletions(-) (limited to 'web/app') diff --git a/web/app/view/SettingsMenu.js b/web/app/view/SettingsMenu.js index 7a594c3a..8d40a8d7 100644 --- a/web/app/view/SettingsMenu.js +++ b/web/app/view/SettingsMenu.js @@ -32,48 +32,58 @@ Ext.define('Traccar.view.SettingsMenu', { items: [{ text: Strings.settingsUser, + glyph: 'xf007@FontAwesome', handler: 'onUserClick' }, { hidden: true, text: Strings.settingsGroups, + glyph: 'xf247@FontAwesome', handler: 'onGroupsClick', reference: 'settingsGroupsButton' }, { hidden: true, text: Strings.sharedGeofences, + glyph: 'xf21d@FontAwesome', handler: 'onGeofencesClick', reference: 'settingsGeofencesButton' }, { - text: Strings.settingsServer, hidden: true, + text: Strings.settingsServer, + glyph: 'xf0ad@FontAwesome', handler: 'onServerClick', reference: 'settingsServerButton' }, { - text: Strings.settingsUsers, hidden: true, + text: Strings.settingsUsers, + glyph: 'xf0c0@FontAwesome', handler: 'onUsersClick', reference: 'settingsUsersButton' }, { text: Strings.sharedNotifications, + glyph: 'xf003@FontAwesome', handler: 'onNotificationsClick', reference: 'settingsNotificationsButton' }, { hidden: true, text: Strings.sharedAttributeAliases, + glyph: 'xf07e@FontAwesome', handler: 'onAttributeAliasesClick', reference: 'settingsAttributeAliasesButton' }, { hidden: true, text: Strings.sharedDeviceDistance, + glyph: 'xf1b9@FontAwesome', handler: 'onDeviceDistanceClick', reference: 'settingsDeviceDistanceButton' }, { hidden: true, text: Strings.statisticsTitle, + glyph: 'xf080@FontAwesome', handler: 'onStatisticsClick', reference: 'settingsStatisticsButton' }, { text: Strings.loginLogout, + glyph: 'xf08b@FontAwesome', handler: 'onLogoutClick' }] } diff --git a/web/app/view/State.js b/web/app/view/State.js index 8f029035..5dbe0352 100644 --- a/web/app/view/State.js +++ b/web/app/view/State.js @@ -39,7 +39,7 @@ Ext.define('Traccar.view.State', { disabled: true, handler: 'onAliasEditClick', reference: 'aliasEditButton', - glyph: 'xf040@FontAwesome', + glyph: 'xf07e@FontAwesome', tooltip: Strings.sharedEdit, tooltipType: 'title' }] diff --git a/web/app/view/Users.js b/web/app/view/Users.js index 5f52d0e3..28581c59 100644 --- a/web/app/view/Users.js +++ b/web/app/view/Users.js @@ -39,20 +39,26 @@ Ext.define('Traccar.view.Users', { tooltip: Strings.sharedGeofences, tooltipType: 'title' }, { - text: Strings.deviceTitle, disabled: true, handler: 'onDevicesClick', - reference: 'userDevicesButton' + reference: 'userDevicesButton', + glyph: 'xf248@FontAwesome', + tooltip: Strings.deviceTitle, + tooltipType: 'title' }, { - text: Strings.settingsGroups, disabled: true, handler: 'onGroupsClick', - reference: 'userGroupsButton' + reference: 'userGroupsButton', + glyph: 'xf247@FontAwesome', + tooltip: Strings.settingsGroups, + tooltipType: 'title' }, { - text: Strings.sharedNotifications, disabled: true, handler: 'onNotificationsClick', - reference: 'userNotificationsButton' + reference: 'userNotificationsButton', + glyph: 'xf003@FontAwesome', + tooltip: Strings.sharedNotifications, + tooltipType: 'title' }] }, -- cgit v1.2.3