fix(storidge): update model and views for Storidge v2695

storidge-standalone
baron_l 2019-03-18 18:01:10 +01:00
parent 9db8a8a068
commit cd6587ebcd
3 changed files with 25 additions and 25 deletions

View File

@ -103,8 +103,8 @@
<td>{{ $ctrl.volume.Replication}}</td> <td>{{ $ctrl.volume.Replication}}</td>
</tr> </tr>
<tr> <tr>
<td>Snapshot</td> <td>Snapshot Enabled</td>
<td>{{ $ctrl.volume.Snapshot}}</td> <td>{{ $ctrl.volume.SnapshotEnabled}}</td>
</tr> </tr>
<tr> <tr>
<td>Snapshot Interval</td> <td>Snapshot Interval</td>

View File

@ -7,24 +7,24 @@ function StoridgeNodeModel(name, data) {
function StoridgeNodeDetailedModel(name, properties) { function StoridgeNodeDetailedModel(name, properties) {
this.Name = name; this.Name = name;
this.Domain = properties['domain:']; this.Domain = properties.domain;
this.DomainID = properties['domainID:']; this.DomainID = properties.domainID;
this.FreeBandwidth = properties['freeBandwidth:']; this.FreeBandwidth = properties.freeBandwidth;
this.FreeCapacity = properties['freeCapacity:']; this.FreeCapacity = properties.freeCapacity;
this.FreeIOPS = properties['freeIOPS:']; this.FreeIOPS = properties.freeIOPS;
this.Hdds = properties['hdds:']; this.Hdds = properties.hdds;
this.MetadataVersion = properties['metadataVersion:']; this.MetadataVersion = properties.metadataVersion;
this.Nodes = properties['nodes:']; this.Nodes = properties.nodes;
this.ProvisionedBandwidth = properties['provisionedBandwidth:']; this.ProvisionedBandwidth = properties.provisionedBandwidth;
this.ProvisionedCapacity = properties['provisionedCapacity:']; this.ProvisionedCapacity = properties.provisionedCapacity;
this.ProvisionedIOPS = properties['provisionedIOPS:']; this.ProvisionedIOPS = properties.provisionedIOPS;
this.Ssds = properties['ssds:']; this.Ssds = properties.ssds;
this.Status = properties['status:']; this.Status = properties.status;
this.TotalBandwidth = properties['totalBandwidth:']; this.TotalBandwidth = properties.totalBandwidth;
this.TotalCapacity = properties['totalCapacity:']; this.TotalCapacity = properties.totalCapacity;
this.TotalIOPS = properties['totalIOPS:']; this.TotalIOPS = properties.totalIOPS;
this.UsedBandwidth = properties['usedBandwidth:']; this.UsedBandwidth = properties.usedBandwidth;
this.UsedCapacity = properties['usedCapacity:']; this.UsedCapacity = properties.usedCapacity;
this.UsedIOPS = properties['usedIOPS:']; this.UsedIOPS = properties.usedIOPS;
this.Vdisks = properties['vdisks:']; this.Vdisks = properties.vdisks;
} }

View File

@ -1,5 +1,5 @@
function StoridgeVolumeModel(data) { function StoridgeVolumeModel(data) {
this.Allocated = data['allocate%']; this.Allocated = data['alloc percent'];
this.Capacity = data.capacity; this.Capacity = data.capacity;
this.Directory = data.directory; this.Directory = data.directory;
this.IOPSMax = data.iopsmax; this.IOPSMax = data.iopsmax;
@ -23,8 +23,8 @@ function StoridgeVolumeModel(data) {
this.Encryption = data.encryption; this.Encryption = data.encryption;
this.Replication = data.replication; this.Replication = data.replication;
this.SnapshotEnabled = data.snapshot; this.SnapshotEnabled = data.snapshot;
this.SnapshotInterval = data.snapshotinterval; this.SnapshotInterval = data.snapinterval;
this.SnapshotMax = data.snapshotmax; this.SnapshotMax = data.snapmax;
this.Filesystem = data.filesystem; this.Filesystem = data.filesystem;
} }