From bb5cc876efb97e6d2275df7a7cd4232a00401dcc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 20 Apr 2024 17:19:12 +0200 Subject: [PATCH] notes view: use pencil-square-o icon for opening the editor The gears one from the native tool with the same name is not really telling and is normally rather used for options, not editing a specific (notes) field. So go for the edit pencil that indicates editing some field and use that for both the edit button in the top bar and the tool one in the title header bar. Signed-off-by: Thomas Lamprecht --- src/panel/NotesView.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/panel/NotesView.js b/src/panel/NotesView.js index a0cc6eb..5cbef8b 100644 --- a/src/panel/NotesView.js +++ b/src/panel/NotesView.js @@ -19,6 +19,7 @@ Ext.define('Proxmox.panel.NotesView', { items: [ { text: gettext('Edit'), + iconCls: 'fa fa-pencil-square-o', handler: function() { let view = this.up('panel'); view.run_editor(); @@ -124,10 +125,11 @@ Ext.define('Proxmox.panel.NotesView', { tools: [ { - type: 'gear', - handler: function() { - let view = this.up('panel'); - view.run_editor(); + glyph: 'xf044@FontAwesome', // fa-pencil-square-o + tooltip: gettext('Edit notes'), + callback: view => view.run_editor(), + style: { + paddingRight: '5px', }, }, ],