Commit b6d76ebd authored by Dietmar Maurer's avatar Dietmar Maurer

use better icons for storage menu

parent 90c61847
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
.pve-itype-icon-memory, .pve-itype-icon-memory,
.pve-itype-icon-processor, .pve-itype-icon-processor,
.pve-itype-icon-network, .pve-itype-icon-network,
.pve-itype-icon-network-server,
.pve-itype-icon-keyboard, .pve-itype-icon-keyboard,
.pve-itype-icon-cdrom, .pve-itype-icon-cdrom,
.pve-itype-icon-qemu, .pve-itype-icon-qemu,
...@@ -135,6 +136,11 @@ ...@@ -135,6 +136,11 @@
background-image:url(../ext4/resources/themes/images/default/tree/folder.gif); background-image:url(../ext4/resources/themes/images/default/tree/folder.gif);
} }
.pve-itype-icon-network-server
{
background-image:url(../images/network-server.png);
}
.pve-itype-icon-network .pve-itype-icon-network
{ {
background-image:url(../images/network.png); background-image:url(../images/network.png);
......
Ext.define('PVE.dc.StorageView', { Ext.define('PVE.dc.StorageView', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',
...@@ -113,6 +114,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -113,6 +114,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: PVE.Utils.format_storage_type('lvm'), text: PVE.Utils.format_storage_type('lvm'),
iconCls: 'pve-itype-icon-storage',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.LVMEdit', {}); var win = Ext.create('PVE.storage.LVMEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -121,7 +123,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -121,7 +123,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: PVE.Utils.format_storage_type('nfs'), text: PVE.Utils.format_storage_type('nfs'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.NFSEdit', {}); var win = Ext.create('PVE.storage.NFSEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -130,7 +132,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -130,7 +132,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: PVE.Utils.format_storage_type('iscsi'), text: PVE.Utils.format_storage_type('iscsi'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.IScsiEdit', {}); var win = Ext.create('PVE.storage.IScsiEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -139,7 +141,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -139,7 +141,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: PVE.Utils.format_storage_type('glusterfs'), text: PVE.Utils.format_storage_type('glusterfs'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.GlusterFsEdit', {}); var win = Ext.create('PVE.storage.GlusterFsEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -148,7 +150,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -148,7 +150,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: PVE.Utils.format_storage_type('rbd'), text: PVE.Utils.format_storage_type('rbd'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.RBDEdit', {}); var win = Ext.create('PVE.storage.RBDEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -159,7 +161,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -159,7 +161,7 @@ Ext.define('PVE.dc.StorageView', {
* so we do not enable that on the GUI for now * so we do not enable that on the GUI for now
{ {
text: PVE.Utils.format_storage_type('sheepdog'), text: PVE.Utils.format_storage_type('sheepdog'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.SheepdogEdit', {}); var win = Ext.create('PVE.storage.SheepdogEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -168,7 +170,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -168,7 +170,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: PVE.Utils.format_storage_type('zfs'), text: PVE.Utils.format_storage_type('zfs'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-network-server',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.ZFSEdit', {}); var win = Ext.create('PVE.storage.ZFSEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment