ui: subscription: add more button icons, small UX fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bb26843cd6
commit
c3a1b34ed3
@ -2,13 +2,14 @@ Ext.define('PBS.SubscriptionKeyEdit', {
|
|||||||
extend: 'Proxmox.window.Edit',
|
extend: 'Proxmox.window.Edit',
|
||||||
|
|
||||||
title: gettext('Upload Subscription Key'),
|
title: gettext('Upload Subscription Key'),
|
||||||
width: 300,
|
width: 320,
|
||||||
autoLoad: true,
|
autoLoad: true,
|
||||||
|
|
||||||
onlineHelp: 'get_help',
|
onlineHelp: 'get_help',
|
||||||
|
|
||||||
items: {
|
items: {
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
labelWidth: 120,
|
||||||
name: 'key',
|
name: 'key',
|
||||||
value: '',
|
value: '',
|
||||||
fieldLabel: gettext('Subscription Key'),
|
fieldLabel: gettext('Subscription Key'),
|
||||||
@ -140,16 +141,18 @@ Ext.define('PBS.Subscription', {
|
|||||||
tbar: [
|
tbar: [
|
||||||
{
|
{
|
||||||
text: gettext('Upload Subscription Key'),
|
text: gettext('Upload Subscription Key'),
|
||||||
|
iconCls: 'fa fa-ticket',
|
||||||
handler: function() {
|
handler: function() {
|
||||||
let win = Ext.create('PBS.SubscriptionKeyEdit', {
|
let win = Ext.create('PBS.SubscriptionKeyEdit', {
|
||||||
url: '/api2/extjs/' + baseurl,
|
url: '/api2/extjs/' + baseurl,
|
||||||
|
autoShow: true,
|
||||||
});
|
});
|
||||||
win.show();
|
|
||||||
win.on('destroy', reload);
|
win.on('destroy', reload);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: gettext('Check'),
|
text: gettext('Check'),
|
||||||
|
iconCls: 'fa fa-check-square-o',
|
||||||
handler: function() {
|
handler: function() {
|
||||||
Proxmox.Utils.API2Request({
|
Proxmox.Utils.API2Request({
|
||||||
params: { force: 1 },
|
params: { force: 1 },
|
||||||
@ -171,10 +174,12 @@ Ext.define('PBS.Subscription', {
|
|||||||
dangerous: true,
|
dangerous: true,
|
||||||
selModel: false,
|
selModel: false,
|
||||||
callback: reload,
|
callback: reload,
|
||||||
|
iconCls: 'fa fa-trash-o',
|
||||||
},
|
},
|
||||||
'-',
|
'-',
|
||||||
{
|
{
|
||||||
text: gettext('System Report'),
|
text: gettext('System Report'),
|
||||||
|
iconCls: 'fa fa-stethoscope',
|
||||||
handler: function() {
|
handler: function() {
|
||||||
Proxmox.Utils.checked_command(function() { me.showReport(); });
|
Proxmox.Utils.checked_command(function() { me.showReport(); });
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user