Skip to content

Commit f8e5e43

Browse files
Merge pull request #110 from sekwah41/fix-file-dialog
Disable upload BOM button when no file selected
2 parents 83401e8 + 026d8c3 commit f8e5e43

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" :disabled="file == null" @click="upload()">{{ $t('message.upload') }}</b-button>
1010
</template>
1111
</b-modal>
1212
</template>

0 commit comments

Comments
 (0)