mirror of https://github.com/portainer/portainer
fix(storidge): update model and views for Storidge v2695
parent
9db8a8a068
commit
cd6587ebcd
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue