mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 23:40:15 +00:00
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:
parent
d958d57e0d
commit
bb5cc876ef
@ -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',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user