From d74bdecc32d622e45a1436dd0fe019da6d25625f Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Wed, 9 Oct 2019 18:24:27 +0300 Subject: [PATCH] Add ability to delete pack, download an archive and download a pack --- src/lang/en.js | 11 ++- src/views/emojiPacks/components/EmojiPack.vue | 77 ++++++++++++++----- 2 files changed, 67 insertions(+), 21 deletions(-) diff --git a/src/lang/en.js b/src/lang/en.js index e501cfe3..46b4b641 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -352,7 +352,16 @@ export default { leaveEmptyShortcode: 'leave empty to use the same shortcode', leaveEmptyFilename: 'leave empty to use the same filename', copy: 'Copy', - copyToLocalPack: 'Copy to local pack' + copyToLocalPack: 'Copy to local pack', + thisWillDownload: 'This will download the', + downloadToCurrentInstance: 'pack to the current instance under the name', + canBeChanged: 'can be changed below', + willBeUsable: 'It will then be usable and shareable from the current instance', + downloadPack: 'Download pack', + deletePack: 'Delete pack', + downloadSharedPack: 'Download shared pack to current instance', + downloadAsOptional: 'Download as (optional)', + downloadPackArchive: 'Download pack archive' }, invites: { inviteTokens: 'Invite tokens', diff --git a/src/views/emojiPacks/components/EmojiPack.vue b/src/views/emojiPacks/components/EmojiPack.vue index 9094e12f..3f819de8 100644 --- a/src/views/emojiPacks/components/EmojiPack.vue +++ b/src/views/emojiPacks/components/EmojiPack.vue @@ -25,15 +25,26 @@ :label="$t('settings.fallbackSrcSha')"> {{ pack.pack["fallback-src-sha256"] }} - - {{ $t('settings.savePackMetadata') }} + + {{ $t('settings.savePackMetadata') }} + {{ $t('settings.deletePack') }} + + + + {{ $t('settings.downloadPackArchive') }} + - - + + - + + +

+ {{ $t('settings.thisWillDownload') }} "{{ name }}" {{ $t('settings.downloadToCurrentInstance') }} + "{{ downloadSharedAs.trim() === '' ? name : downloadSharedAs }}" ({{ $t('settings.canBeChanged') }}). + {{ $t('settings.willBeUsable') }}. +

+
+ + + {{ $t('settings.downloadSharedPack') }} + +
+
- - + +