mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 23:19:20 +00:00
ui: ceph installer: set initial tab depending on current state
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
833b048f9f
commit
4e36fbabe8
@ -27,6 +27,20 @@ Ext.define('PVE.ceph.CephInstallWizard', {
|
|||||||
tp.setActiveTab(ntab);
|
tp.setActiveTab(ntab);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setInitialTab: function (index) {
|
||||||
|
var tp = this.down('#wizcontent');
|
||||||
|
var initialTab = tp.items.getAt(index);
|
||||||
|
initialTab.enable();
|
||||||
|
tp.setActiveTab(initialTab);
|
||||||
|
},
|
||||||
|
onShow: function() {
|
||||||
|
this.callParent(arguments);
|
||||||
|
var isInstalled = this.getViewModel().get('isInstalled');
|
||||||
|
if (isInstalled) {
|
||||||
|
this.getViewModel().set('configuration', false);
|
||||||
|
this.setInitialTab(2);
|
||||||
|
}
|
||||||
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: gettext('Info'),
|
title: gettext('Info'),
|
||||||
|
Loading…
Reference in New Issue
Block a user