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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-04-20 17:19:12 +02:00
parent d958d57e0d
commit bb5cc876ef

View File

@ -19,6 +19,7 @@ Ext.define('Proxmox.panel.NotesView', {
items: [ items: [
{ {
text: gettext('Edit'), text: gettext('Edit'),
iconCls: 'fa fa-pencil-square-o',
handler: function() { handler: function() {
let view = this.up('panel'); let view = this.up('panel');
view.run_editor(); view.run_editor();
@ -124,10 +125,11 @@ Ext.define('Proxmox.panel.NotesView', {
tools: [ tools: [
{ {
type: 'gear', glyph: 'xf044@FontAwesome', // fa-pencil-square-o
handler: function() { tooltip: gettext('Edit notes'),
let view = this.up('panel'); callback: view => view.run_editor(),
view.run_editor(); style: {
paddingRight: '5px',
}, },
}, },
], ],