ui: administration: set icons for tabs

orient on PVE, the ones for Updates, ServerStatus, should by
self-explanatory.

Services is in PVE named "System", but reusing that cogs icon makes
similar sense here too, and seems in line with search result of a
"service icons" query.

Syslog is the same as our general log icon, but as we also use this
normally for worker task logs and that is present here too, I
changed the worker task log icon to the alternative list, which
resembles a task view window - so IMO even better than before.

Sync that change also into the always present tasks button at the top
right.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-31 09:11:10 +01:00
parent 1143f6ca93
commit 0656344ae4
2 changed files with 6 additions and 1 deletions

View File

@ -20,11 +20,13 @@ Ext.define('PBS.ServerAdministration', {
{ {
xtype: 'pbsServerStatus', xtype: 'pbsServerStatus',
itemId: 'status', itemId: 'status',
iconCls: 'fa fa-area-chart',
}, },
{ {
xtype: 'proxmoxNodeServiceView', xtype: 'proxmoxNodeServiceView',
title: gettext('Services'), title: gettext('Services'),
itemId: 'services', itemId: 'services',
iconCls: 'fa fa-cogs',
restartCommand: 'reload', // avoid disruptions restartCommand: 'reload', // avoid disruptions
startOnlyServices: { startOnlyServices: {
syslog: true, syslog: true,
@ -36,6 +38,7 @@ Ext.define('PBS.ServerAdministration', {
{ {
xtype: 'proxmoxNodeAPT', xtype: 'proxmoxNodeAPT',
title: gettext('Updates'), title: gettext('Updates'),
iconCls: 'fa fa-refresh',
upgradeBtn: { upgradeBtn: {
xtype: 'button', xtype: 'button',
reference: 'upgradeBtn', reference: 'upgradeBtn',
@ -51,12 +54,14 @@ Ext.define('PBS.ServerAdministration', {
{ {
xtype: 'proxmoxJournalView', xtype: 'proxmoxJournalView',
itemId: 'logs', itemId: 'logs',
iconCls: 'fa fa-list',
title: gettext('Syslog'), title: gettext('Syslog'),
url: "/api2/extjs/nodes/localhost/journal", url: "/api2/extjs/nodes/localhost/journal",
}, },
{ {
xtype: 'proxmoxNodeTasks', xtype: 'proxmoxNodeTasks',
itemId: 'tasks', itemId: 'tasks',
iconCls: 'fa fa-list-alt',
title: gettext('Tasks'), title: gettext('Tasks'),
height: 'auto', height: 'auto',
nodename: 'localhost', nodename: 'localhost',

View File

@ -7,7 +7,7 @@ Ext.define('PBS.TaskButton', {
badgeCls: '', badgeCls: '',
}, },
iconCls: 'fa fa-list', iconCls: 'fa fa-list-alt',
userCls: 'pmx-has-badge', userCls: 'pmx-has-badge',
text: gettext('Tasks'), text: gettext('Tasks'),