diff --git a/app/src/components/ConfigPanels.vue b/app/src/components/ConfigPanels.vue index ff8aa820..cd959b59 100644 --- a/app/src/components/ConfigPanels.vue +++ b/app/src/components/ConfigPanels.vue @@ -1,7 +1,7 @@ @@ -49,10 +49,3 @@ export default { } } - - diff --git a/app/src/components/globals/FormField.vue b/app/src/components/globals/FormField.vue index d7be17e1..3dd85173 100644 --- a/app/src/components/globals/FormField.vue +++ b/app/src/components/globals/FormField.vue @@ -28,15 +28,18 @@ @@ -76,8 +79,8 @@ export default { if ('label' in attrs) { const defaultAttrs = { 'label-cols-md': 4, - 'label-cols-lg': 2, - 'label-class': 'font-weight-bold' + 'label-cols-lg': 3, + 'label-class': ['font-weight-bold', 'py-0'] } if (!('label-cols' in attrs)) { for (const attr in defaultAttrs) { diff --git a/app/src/components/globals/formItems/InputItem.vue b/app/src/components/globals/formItems/InputItem.vue index e9c95a1a..2cd8391d 100644 --- a/app/src/components/globals/formItems/InputItem.vue +++ b/app/src/components/globals/formItems/InputItem.vue @@ -2,7 +2,6 @@ @@ -21,11 +21,6 @@ export default { name: 'InputItem', - data () { - return { - autocomplete_: (this.autocomplete) ? this.autocomplete : (this.type === 'password') ? 'new-password' : null - } - }, props: { value: { type: [String, Number], default: null }, id: { type: String, default: null }, @@ -40,6 +35,12 @@ export default { autocomplete: { type: String, default: null }, pattern: { type: Object, default: null }, name: { type: String, default: null } + }, + + data () { + return { + autocomplete_: (this.autocomplete) ? this.autocomplete : (this.type === 'password') ? 'new-password' : null + } } } diff --git a/app/src/components/globals/formItems/ReadOnlyAlertItem.vue b/app/src/components/globals/formItems/ReadOnlyAlertItem.vue index bc63ff6d..ac1dac55 100644 --- a/app/src/components/globals/formItems/ReadOnlyAlertItem.vue +++ b/app/src/components/globals/formItems/ReadOnlyAlertItem.vue @@ -1,8 +1,10 @@ @@ -11,29 +13,23 @@ export default { name: 'ReadOnlyAlertItem', - data () { - const icons = { - success: 'thumbs-up', - info: 'info-circle', - warning: 'warning', - danger: 'times' - } - return { - icon_: (this.icon) ? this.icon : icons[this.type] - } - }, - props: { id: { type: String, default: null }, label: { type: String, default: null }, type: { type: String, default: null }, icon: { type: String, default: null } + }, + + computed: { + icon_ () { + const icons = { + success: 'thumbs-up', + info: 'info', + warning: 'exclamation', + danger: 'times' + } + return this.icon || icons[this.type] + } } } - - diff --git a/app/src/components/globals/formItems/TextAreaItem.vue b/app/src/components/globals/formItems/TextAreaItem.vue index b9224f10..95af03e8 100644 --- a/app/src/components/globals/formItems/TextAreaItem.vue +++ b/app/src/components/globals/formItems/TextAreaItem.vue @@ -1,6 +1,6 @@