Skip to content

Commit 1064420

Browse files
authored
Merge pull request #24 from devforth/feature/AdminForth/1739/upload-plugin-+-image-generati
fix: disable btn if image not generated
2 parents 6201005 + 7e61909 commit 1064420

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom/imageGenerator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
<span class="sr-only">{{ $t('Previous') }}</span>
144144
</button>
145145
<button type="button" class="inline-flex items-center justify-center w-8 h-8 rounded-full border border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 disabled:opacity-30 disabled:cursor-not-allowed transition shadow-sm"
146-
:disabled="loading"
146+
:disabled="loading || images.length === 0"
147147
@click="slide(1)"
148148
>
149149
<svg class="w-4 h-4 text-gray-700 dark:text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">

0 commit comments

Comments
 (0)