]>
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',
25 cephVersion
: 'nautilus',
29 buttonText: function (get){
30 if (get('isInstalled')) {
31 return gettext('Configure Ceph');
33 return gettext('Install Ceph-') + get('cephVersion');
36 windowText: function (get) {
37 if (get('isInstalled')) {
38 return '<p class="install-mask">' +
39 Ext
.String
.format(gettext('{0} is not initialized.'), 'Ceph') + ' '+
40 gettext('You need to create a initial config once.') + '</p>';
42 return '<p class="install-mask">' +
43 Ext
.String
.format(gettext('{0} is not installed on this node.'), 'Ceph') + '<br>' +
44 gettext('Would you like to install it now?') + '</p>';
56 bodyCls
: 'install-mask'
66 nodename
: '{nodename}'
69 var me
= this.up('pveCephInstallWindow');
70 var win
= Ext
.create('PVE.ceph.CephInstallWizard',{
73 win
.getViewModel().set('isInstalled', this.getViewModel().get('isInstalled'));
75 me
.mon(win
,'beforeClose', function(){
76 me
.fireEvent("cephInstallWindowClosed");