Small UI improvement

master
Marcus Bakker 2021-03-01 18:58:41 +01:00
parent a4c9551c18
commit 5c919f0f86
1 changed files with 18 additions and 17 deletions

View File

@ -16,6 +16,7 @@
</div>
<div class="mb-3">
<label>Applicable to</label>
<div v-for="(row, i) in applicable_to" :key="i" :row="row">
<div class="collapseHeader">
<div class="row">
@ -34,7 +35,7 @@
<b-card class="collapseContent">
<list-editor
:list="row.applicable_to"
:name="title + ' is applicable to'"
:name="'Change applicable to value(s)'"
placeholder="applicable to"
class="mt-md-2 no-bottom-margin"
:externalListToValidate="getApplicableToList()"
@ -177,57 +178,57 @@ export default {
defaultKVKeys: Object.keys(this.emptyObject),
showHelptextScore: false,
currentModal: '',
commentModal: '',
commentModal: ''
};
},
mixins: [notificationMixin, pageDetailMixin],
props: {
title: {
type: String,
required: true,
required: true
},
applicable_to: {
type: Array,
required: true,
required: true
},
showLocation: {
type: Boolean,
required: false,
default: true,
default: true
},
helpText: {
type: String,
required: true,
required: true
},
scores: {
type: Array,
required: true,
required: true
},
scoresTooltip: {
type: Object,
required: true,
required: true
},
defaultScore: {
type: Number,
required: true,
required: true
},
showAutoGenerated: {
type: Boolean,
required: false,
default: false,
default: false
},
emptyScoreEntry: {
type: Object,
required: true,
required: true
},
helptextScore: {
type: String,
required: true,
required: true
},
emptyObject: {
type: Object,
required: true,
},
required: true
}
},
components: {
ListEditor,
@ -236,7 +237,7 @@ export default {
ScoreLogbook,
ScoreSlider,
Icons,
ExtendedTextarea,
ExtendedTextarea
},
methods: {
escapeKeyListener: function(evt) {
@ -335,8 +336,8 @@ export default {
},
editCommentCallback(b) {
this.commentModal = b;
},
},
}
}
};
</script>