mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 13:10:27 +00:00
show 'RBD' instead of 'RBD (external)' on storage summary
we cannot differentiate between external and pve-managed there, so we just want to show 'RBD' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8b1ee8ff0d
commit
6760ab9248
@ -776,8 +776,8 @@ Ext.define('PVE.Utils', { utilities: {
|
|||||||
},
|
},
|
||||||
|
|
||||||
format_storage_type: function(value, md, record) {
|
format_storage_type: function(value, md, record) {
|
||||||
if (value === 'rbd' && record && !record.get('monhost')) {
|
if (value === 'rbd' && record) {
|
||||||
value = 'pveceph';
|
value = (record.get('monhost')?'rbd_ext':'pveceph');
|
||||||
}
|
}
|
||||||
if (value === 'dir') {
|
if (value === 'dir') {
|
||||||
return PVE.Utils.directoryText;
|
return PVE.Utils.directoryText;
|
||||||
@ -792,6 +792,8 @@ Ext.define('PVE.Utils', { utilities: {
|
|||||||
} else if (value === 'iscsi') {
|
} else if (value === 'iscsi') {
|
||||||
return 'iSCSI';
|
return 'iSCSI';
|
||||||
} else if (value === 'rbd') {
|
} else if (value === 'rbd') {
|
||||||
|
return 'RBD';
|
||||||
|
} else if (value === 'rbd_ext') {
|
||||||
return 'RBD (external)';
|
return 'RBD (external)';
|
||||||
} else if (value === 'pveceph') {
|
} else if (value === 'pveceph') {
|
||||||
return 'RBD (PVE)';
|
return 'RBD (PVE)';
|
||||||
|
@ -178,7 +178,7 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: PVE.Utils.format_storage_type('rbd'),
|
text: PVE.Utils.format_storage_type('rbd_ext'),
|
||||||
iconCls: 'fa fa-fw fa-building',
|
iconCls: 'fa fa-fw fa-building',
|
||||||
handler: function() {
|
handler: function() {
|
||||||
var win = Ext.create('PVE.storage.RBDEdit', {});
|
var win = Ext.create('PVE.storage.RBDEdit', {});
|
||||||
|
Loading…
Reference in New Issue
Block a user