We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d203a2 commit 3c983ffCopy full SHA for 3c983ff
src/views/policy/PolicyCondition.vue
@@ -206,6 +206,11 @@
206
name: common.trimToNull(this.coordinatesName),
207
version: common.trimToNull(this.coordinatesVersion)
208
});
209
+ } else if (this.subject === "COMPONENT_HASH") {
210
+ return JSON.stringify({
211
+ algorithm: common.trimToNull(this.operator),
212
+ value: common.trimToNull(this.value)
213
+ });
214
} else {
215
return this.value;
216
}
@@ -220,7 +225,7 @@
220
225
this.axios.post(url, {
221
226
uuid: this.condition.uuid,
222
227
subject: this.subject,
223
- operator: this.operator,
228
+ operator: this.subject === 'COMPONENT_HASH' ? 'IS' : this.operator,
224
229
value: dynamicValue
230
}).then((response) => {
231
this.condition = response.data;
0 commit comments