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>
</tr>
<tr>
<td>Snapshot</td>
<td>{{ $ctrl.volume.Snapshot}}</td>
<td>Snapshot Enabled</td>
<td>{{ $ctrl.volume.SnapshotEnabled}}</td>
</tr>
<tr>
<td>Snapshot Interval</td>

View File

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

View File

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