]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/window/CephInstall.js
1 /*jslint confusion: true*/
2 Ext
.define('PVE.ceph.Install', {
3 extend
: 'Ext.window.Window',
4 xtype
: 'pveCephInstallWindow',
5 mixins
: ['Proxmox.Mixin.CBind'],
18 bodyCls
: 'install-mask',
26 cephVersion
: 'luminous',
30 buttonText: function (get){
31 if (get('isInstalled')) {
32 return gettext('Configure Ceph');
34 return gettext('Install Ceph-') + get('cephVersion');
37 windowText: function (get) {
38 if (get('isInstalled')) {
39 return '<p class="install-mask">' +
40 Ext
.String
.format(gettext('{0} is not initialized.'), 'Ceph') + ' '+
41 gettext('You need to create a initial config once.') + '</p>';
43 return '<p class="install-mask">' +
44 Ext
.String
.format(gettext('{0} is not installed on this node.'), 'Ceph') + '<br>' +
45 gettext('Would you like to install it now?') + '</p>';
57 bodyCls
: 'install-mask'
67 nodename
: '{nodename}'
70 var me
= this.up('pveCephInstallWindow');
71 var win
= Ext
.create('PVE.ceph.CephInstallWizard',{
74 win
.getViewModel().set('isInstalled', this.getViewModel().get('isInstalled'));
76 me
.mon(win
,'beforeClose', function(){
77 me
.fireEvent("cephInstallWindowClosed");