From c3a1b34ed3bc4b3a7ce9709c7b9e3f4a6fd146e5 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 Nov 2020 10:42:45 +0100 Subject: [PATCH] ui: subscription: add more button icons, small UX fix Signed-off-by: Thomas Lamprecht --- www/Subscription.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/Subscription.js b/www/Subscription.js index 2023c6c8..54b8ae27 100644 --- a/www/Subscription.js +++ b/www/Subscription.js @@ -2,13 +2,14 @@ Ext.define('PBS.SubscriptionKeyEdit', { extend: 'Proxmox.window.Edit', title: gettext('Upload Subscription Key'), - width: 300, + width: 320, autoLoad: true, onlineHelp: 'get_help', items: { xtype: 'textfield', + labelWidth: 120, name: 'key', value: '', fieldLabel: gettext('Subscription Key'), @@ -140,16 +141,18 @@ Ext.define('PBS.Subscription', { tbar: [ { text: gettext('Upload Subscription Key'), + iconCls: 'fa fa-ticket', handler: function() { let win = Ext.create('PBS.SubscriptionKeyEdit', { url: '/api2/extjs/' + baseurl, + autoShow: true, }); - win.show(); win.on('destroy', reload); }, }, { text: gettext('Check'), + iconCls: 'fa fa-check-square-o', handler: function() { Proxmox.Utils.API2Request({ params: { force: 1 }, @@ -171,10 +174,12 @@ Ext.define('PBS.Subscription', { dangerous: true, selModel: false, callback: reload, + iconCls: 'fa fa-trash-o', }, '-', { text: gettext('System Report'), + iconCls: 'fa fa-stethoscope', handler: function() { Proxmox.Utils.checked_command(function() { me.showReport(); }); },