Skip to content

Commit

Permalink
#904: add survey variable secret to hide secret values for variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sparsick committed May 3, 2024
1 parent e640378 commit 5f42323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/components/SurveyVars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export default {
}, {
id: 'int',
name: 'Integer',
}, {
id: 'secret',
name: 'Secret',
}],
};
},
Expand Down
1 change: 1 addition & 0 deletions web/src/components/TaskForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
:hint="v.description"
v-model="editedEnvironment[v.name]"
:required="v.required"
:type="v.type === 'secret' ?'password' : 'text' "
:rules="[
val => !v.required || !!val || v.title + $t('isRequired'),
val => !val || v.type !== 'int' || /^\d+$/.test(val) ||
Expand Down

0 comments on commit 5f42323

Please sign in to comment.