]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/window/CephInstall.js
1 Ext
.define('PVE.ceph.Install', {
2 extend
: 'Ext.window.Window',
3 xtype
: 'pveCephInstallWindow',
4 mixins
: ['Proxmox.Mixin.CBind'],
17 bodyCls
: 'install-mask',
28 buttonText: function(get) {
29 if (get('isInstalled')) {
30 return gettext('Configure Ceph');
32 return gettext('Install Ceph');
35 windowText: function(get) {
36 if (get('isInstalled')) {
37 return '<p class="install-mask">' +
38 Ext
.String
.format(gettext('{0} is not initialized.'), 'Ceph') + ' '+
39 gettext('You need to create a initial config once.') + '</p>';
41 return '<p class="install-mask">' +
42 Ext
.String
.format(gettext('{0} is not installed on this node.'), 'Ceph') + '<br>' +
43 gettext('Would you like to install it now?') + '</p>';
55 bodyCls
: 'install-mask',
65 nodename
: '{nodename}',
68 let view
= this.up('pveCephInstallWindow');
69 let wizzard
= Ext
.create('PVE.ceph.CephInstallWizard', {
70 nodename
: view
.nodename
,
72 wizzard
.getViewModel().set('isInstalled', this.getViewModel().get('isInstalled'));
74 view
.mon(wizzard
, 'beforeClose', function() {
75 view
.fireEvent("cephInstallWindowClosed");