diff options
author | Louis Chemineau <louis@chmn.me> | 2023-01-23 12:53:15 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-01-23 12:53:15 +0100 |
commit | 161fb3cf58718f093b989f52d5ac82990fbd20e3 (patch) | |
tree | 81053b57d36c11bc2bbb1eee7c8b51ea1ef6f20f /src | |
parent | 3d027881bb6fa5b1ab9b63538ee6de87d79e1726 (diff) |
Prevent adding more than one attachment
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Composer/Composer.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue index a392882d..62d4f6ca 100644 --- a/src/components/Composer/Composer.vue +++ b/src/components/Composer/Composer.vue @@ -25,7 +25,6 @@ <div class="new-post" data-id=""> <input id="file-upload" ref="fileUploadInput" - multiple type="file" tabindex="-1" aria-hidden="true" @@ -83,6 +82,7 @@ <div class="options"> <NcButton v-tooltip="t('social', 'Add attachment')" type="tertiary" + :disabled="previewUrls.length >= 1" :aria-label="t('social', 'Add attachment')" @click.prevent="clickImportInput"> <template #icon> |