set the default console in the gui when setting the option
until now, we only set the default console once on page load, this enables to set it everytime the dc->options panel loads, so also after setting an option Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
df58ed272c
commit
3ffa987830
@ -59,6 +59,19 @@ Ext.define('PVE.dc.OptionView', {
|
||||
|
||||
me.callParent();
|
||||
|
||||
// set the new value for the default console
|
||||
me.mon(me.rstore, 'load', function(store, records, success) {
|
||||
if (!success) {
|
||||
return;
|
||||
}
|
||||
|
||||
var rec = store.getById('console');
|
||||
PVE.VersionInfo.console = rec.data.value;
|
||||
if (rec.data.value === '__default__') {
|
||||
delete PVE.VersionInfo.console;
|
||||
}
|
||||
});
|
||||
|
||||
me.on('activate', me.rstore.startUpdate);
|
||||
me.on('destroy', me.rstore.stopUpdate);
|
||||
me.on('deactivate', me.rstore.stopUpdate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user