Ext.define('PVE.ceph.Install', { extend: 'Ext.window.Window', xtype: 'pveCephInstallWindow', mixins: ['Proxmox.Mixin.CBind'], width: 220, header: false, resizable: false, draggable: false, modal: true, nodename: undefined, shadow: false, border: false, bodyBorder: false, closable: false, cls: 'install-mask', bodyCls: 'install-mask', layout: { align: 'stretch', pack: 'center', type: 'vbox', }, viewModel: { data: { isInstalled: false, }, formulas: { buttonText: function(get) { if (get('isInstalled')) { return gettext('Configure Ceph'); } else { return gettext('Install Ceph'); } }, windowText: function(get) { if (get('isInstalled')) { return '
' + Ext.String.format(gettext('{0} is not initialized.'), 'Ceph') + ' '+ gettext('You need to create a initial config once.') + '
'; } else { return '' +
Ext.String.format(gettext('{0} is not installed on this node.'), 'Ceph') + '
' +
gettext('Would you like to install it now?') + '