3
0

Make namespace import handle required

This commit is contained in:
Jože Fortun
2023-11-07 17:14:42 +01:00
parent 81bf23f1c7
commit 34c0d2d804
3 changed files with 10 additions and 15 deletions
@@ -46,19 +46,9 @@
lg="6"
>
<b-form-group
:label="$t('image.editor.label')"
label-class="d-flex align-items-center text-primary"
>
<template #label>
{{ $t("image.editor.label") }}
<c-input-confirm
v-if="uploadedFile('auth.ui.background-image-src')"
show-icon
class="ml-auto"
@confirmed="$emit('resetAttachment', 'auth.ui.background-image-src')"
/>
</template>
<ace-editor
data-test-id="auth-bg-image-styling-editor"
:font-size="14"
@@ -4,7 +4,10 @@
footer-bg-variant="white"
footer-class="d-flex justify-content-between align-items-center"
>
<b-form-group :label="$t('name.label')">
<b-form-group
:label="$t('name.label')"
label-class="text-primary"
>
<b-form-input
v-model="name"
data-test-id="input-name"
@@ -14,7 +17,7 @@
</b-form-group>
<b-form-group
:label="$t('slug.label')"
:label="$t('import.slug.label')"
label-class="text-primary"
>
<b-form-input
@@ -33,7 +36,7 @@
<b-button
data-test-id="button-back"
variant="link"
class="back px-0"
class="text-dark back text-left text-nowrap p-1"
@click="$emit('back')"
>
<font-awesome-icon
@@ -80,7 +83,7 @@ export default {
computed: {
submitDisabled () {
return [this.nameState, this.slugState].includes(false)
return [this.nameState, this.slugState, this.slug].includes(false)
},
nameState () {
@@ -10,6 +10,8 @@ import:
uploadFilePlaceholder: Click or drop file here to upload (.zip format)
back: Back
import: Import
slug:
label: Short name *
description:
label: Namespace description
placeholder: Enter namespace description