mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-15 18:27:00 +00:00
api-viewer: fine-tune RAW return type showing
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8753d260ad
commit
b77cddaade
@ -241,8 +241,7 @@ Ext.onReady(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rawSection = Ext.create('Ext.panel.Panel', {
|
var rawSection = Ext.create('Ext.panel.Panel', {
|
||||||
title: 'RAW ' + rtype,
|
bodyPadding: '0px 10px 10px 10px',
|
||||||
bodyPadding: 10,
|
|
||||||
html: returnhtml,
|
html: returnhtml,
|
||||||
hidden: true
|
hidden: true
|
||||||
});
|
});
|
||||||
@ -286,12 +285,13 @@ Ext.onReady(function() {
|
|||||||
flex: 6
|
flex: 6
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tbar: [
|
bbar: [
|
||||||
{
|
{
|
||||||
xtype: 'button',
|
xtype: 'button',
|
||||||
text: 'Toggle RAW',
|
text: 'Show RAW',
|
||||||
handler: function() {
|
handler: function(btn) {
|
||||||
rawSection.setVisible(!rawSection.isVisible());
|
rawSection.setVisible(!rawSection.isVisible());
|
||||||
|
btn.setText(rawSection.isVisible() ? 'Hide RAW' : 'Show RAW');
|
||||||
}}
|
}}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user