Skip to content

Commit b0b3308

Browse files
authored
enable BOM upload button only on file selection
avoid empty uploads
1 parent d2a7f7e commit b0b3308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/portfolio/projects/ProjectUploadBomModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<template v-slot:modal-footer="{ cancel }">
77
<b-button size="md" variant="secondary" @click="cancel()">{{ $t('message.cancel') }}</b-button>
88
<b-button size="md" variant="secondary" @click="file = null">{{ $t('message.reset') }}</b-button>
9-
<b-button size="md" variant="primary" @click="upload()">{{ $t('message.upload') }}</b-button>
9+
<b-button size="md" variant="primary" @click="upload()" :disabled="file === null">{{ $t('message.upload') }}</b-button>
1010
</template>
1111
</b-modal>
1212
</template>

0 commit comments

Comments
 (0)