From 6aab2dd6646a9ca3e0651cbe22018fbe3b27f754 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Wed, 23 Oct 2019 01:07:45 +0200 Subject: [PATCH] Add ability to upload file from an url --- .../components/NewEmojiUploader.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/emojiPacks/components/NewEmojiUploader.vue b/src/views/emojiPacks/components/NewEmojiUploader.vue index 4bb8b441..0715cde8 100644 --- a/src/views/emojiPacks/components/NewEmojiUploader.vue +++ b/src/views/emojiPacks/components/NewEmojiUploader.vue @@ -7,20 +7,20 @@ - - - {{ $t('settings.clickToUpload') }} - - +

or

+ + {{ $t('settings.clickToUpload') }} + +
@@ -75,11 +75,12 @@ export default { action: 'add', packName: this.packName, shortcode: this.shortcode, - file, + file: file || this.imageUploadURL, fileName: this.customFileName }).then(() => { this.shortcode = '' this.imageUploadURL = '' + this.customFileName = '' this.$store.dispatch('ReloadEmoji') })