Skip to content
Snippets Groups Projects
Commit bee47412 authored by juanf's avatar juanf
Browse files

SSDM-5555 : Show/Hide boxName, size and position depending if they are present

SVN: 38702
parent 00c19f36
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,21 @@ function StorageController(configOverride) { ...@@ -45,11 +45,21 @@ function StorageController(configOverride) {
if(data.samples.length > 1 || if(data.samples.length > 1 ||
data.samples.length === 1 && data.samples[0].properties[_this._storageModel.storagePropertyGroup.boxProperty]) { data.samples.length === 1 && data.samples[0].properties[_this._storageModel.storagePropertyGroup.boxProperty]) {
_this._storageView.showBoxName(); _this._storageView.showBoxName();
_this._storageView.showBoxSize();
_this._storageView.showPosField(data.size, true);
} else { } else {
_this._storageView.hideBoxField(); _this._storageView.hideBoxField();
}
if(data.samples.length > 1 ||
data.samples.length === 1 && data.samples[0].properties[_this._storageModel.storagePropertyGroup.boxSizeProperty]) {
_this._storageView.showBoxSize();
} else {
_this._storageView.hideBoxSizeField(); _this._storageView.hideBoxSizeField();
}
if(data.samples.length > 1 ||
data.samples.length === 1 && data.samples[0].properties[_this._storageModel.storagePropertyGroup.positionProperty]) {
_this._storageView.showPosField(data.size, true);
} else {
_this._storageView.hidePosField(); _this._storageView.hidePosField();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment