Skip to content

Commit ed3e4da

Browse files
committed
rename variable to storageOption
1 parent dabaa80 commit ed3e4da

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src-electron/rest/user-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function httpPostCheckConformOnFeatureUpdate(db) {
115115
clusterFeatures,
116116
endpointId,
117117
endpointTypeId,
118-
featureMapStorageOption,
118+
storageOption,
119119
changeConfirmed
120120
} = request.body
121121

@@ -137,7 +137,7 @@ function httpPostCheckConformOnFeatureUpdate(db) {
137137
featureData,
138138
endpointId,
139139
clusterFeatures,
140-
featureMapStorageOption
140+
storageOption
141141
)
142142

143143
if (changeConfirmed || result.disableChange) {

src-electron/validation/conformance-checker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function generateWarningMessage(
5151
descElements = {},
5252
featuresToUpdate = {},
5353
changedConformFeatures = [],
54-
featureMapStorageOption = null,
54+
storageOption = null,
5555
attributes = []
5656
) {
5757
// feature change is disabled by default before the checks
@@ -75,7 +75,7 @@ function generateWarningMessage(
7575
let updateDisabledString = `cannot be ${added ? 'enabled' : 'disabled'} as`
7676

7777
// Check 0: if the featureMap attribute storage is external, ZAP cannot modify it
78-
if (featureMapStorageOption === dbEnum.storageOption.external) {
78+
if (storageOption === dbEnum.storageOption.external) {
7979
result.warningMessage.push(
8080
warningPrefix +
8181
` ${updateDisabledString} the featureMap attribute in the cluster is external and ZAP does not have control over it.`
@@ -282,7 +282,7 @@ function checkElementConformance(
282282
featureData = null,
283283
endpointId = null,
284284
clusterFeatures = null,
285-
featureMapStorageOption = null
285+
storageOption = null
286286
) {
287287
let { attributes, commands, events } = elements
288288
let featureCode = featureData ? featureData.code : ''
@@ -338,7 +338,7 @@ function checkElementConformance(
338338
descElements,
339339
featuresToUpdate,
340340
changedConformFeatures,
341-
featureMapStorageOption,
341+
storageOption,
342342
attributes
343343
)
344344

src/util/feature-mixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default {
117117
clusterFeatures: this.clusterFeatures,
118118
endpointId: this.endpointId[this.selectedEndpointId],
119119
endpointTypeId: this.selectedEndpointTypeId,
120-
featureMapStorageOption: this.featureMapAttribute?.storageOption,
120+
storageOption: this.featureMapAttribute?.storageOption,
121121
changeConfirmed: false
122122
}).then((res) => {
123123
// store backend response and frontend data for reuse if updates are confirmed
@@ -229,7 +229,7 @@ export default {
229229
clusterFeatures: this.clusterFeatures,
230230
endpointId: this.endpointId[this.selectedEndpointId],
231231
endpointTypeId: this.selectedEndpointTypeId,
232-
featureMapStorageOption: this.featureMapAttribute?.storageOption,
232+
storageOption: this.featureMapAttribute?.storageOption,
233233
changeConfirmed: true
234234
})
235235
if (this.displayWarning) {

0 commit comments

Comments
 (0)