aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/components/Checks/RequestURL.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/components/Checks/RequestURL.vue')
-rw-r--r--apps/workflowengine/src/components/Checks/RequestURL.vue17
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/workflowengine/src/components/Checks/RequestURL.vue b/apps/workflowengine/src/components/Checks/RequestURL.vue
index 7de8b0637ff..2ddba526d1e 100644
--- a/apps/workflowengine/src/components/Checks/RequestURL.vue
+++ b/apps/workflowengine/src/components/Checks/RequestURL.vue
@@ -81,12 +81,14 @@ export default {
}
return 'https://localhost/index.php'
},
+ matchingPredefined() {
+ return this.predefinedTypes
+ .map(groups => groups.children)
+ .flat()
+ .find((type) => this.newValue === type.pattern)
+ },
isPredefined() {
- const matchingPredefined = this.predefinedTypes.map(groups => groups.children).flat().find((type) => this.newValue === type.pattern)
- if (matchingPredefined) {
- return true
- }
- return false
+ return !!this.matchingPredefined
},
customValue() {
return {
@@ -101,9 +103,8 @@ export default {
}
},
currentValue() {
- const matchingPredefined = this.predefinedTypes.map(groups => groups.children).flat().find((type) => this.newValue === type.pattern)
- if (matchingPredefined) {
- return matchingPredefined
+ if (this.matchingPredefined) {
+ return this.matchingPredefined
}
return {
icon: 'icon-settings-dark',