diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-10-04 20:18:41 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-10-04 20:18:41 +0900 |
| commit | d17c6adba4cc683a74883b07933603c99e095554 (patch) | |
| tree | 62e3cdd03eeb445b86f38f1a0c99deb4944533a2 /src/client | |
| parent | Use node 12.11.1 (diff) | |
| download | misskey-d17c6adba4cc683a74883b07933603c99e095554.tar.gz misskey-d17c6adba4cc683a74883b07933603c99e095554.tar.bz2 misskey-d17c6adba4cc683a74883b07933603c99e095554.zip | |
ダウンロードURLにdownloadを付けないなど (#5488)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/desktop/views/components/drive.file.vue | 4 | ||||
| -rw-r--r-- | src/client/app/mobile/views/components/drive.file-detail.vue | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/client/app/desktop/views/components/drive.file.vue b/src/client/app/desktop/views/components/drive.file.vue index efc534ee70..e34fdff423 100644 --- a/src/client/app/desktop/views/components/drive.file.vue +++ b/src/client/app/desktop/views/components/drive.file.vue @@ -37,7 +37,6 @@ import i18n from '../../../i18n'; import copyToClipboard from '../../../common/scripts/copy-to-clipboard'; import updateAvatar from '../../api/update-avatar'; import updateBanner from '../../api/update-banner'; -import { appendQuery } from '../../../../../prelude/url'; import XFileThumbnail from '../../../common/views/components/drive-file-thumbnail.vue'; export default Vue.extend({ @@ -87,7 +86,8 @@ export default Vue.extend({ action: this.copyUrl }, { type: 'link', - href: appendQuery(this.file.url, 'download'), + href: this.file.url, + target: '_blank', text: this.$t('contextmenu.download'), icon: 'download', download: this.file.name diff --git a/src/client/app/mobile/views/components/drive.file-detail.vue b/src/client/app/mobile/views/components/drive.file-detail.vue index 224ff2f058..328982a16b 100644 --- a/src/client/app/mobile/views/components/drive.file-detail.vue +++ b/src/client/app/mobile/views/components/drive.file-detail.vue @@ -57,7 +57,6 @@ import Vue from 'vue'; import i18n from '../../../i18n'; import { gcd } from '../../../../../prelude/math'; -import { appendQuery } from '../../../../../prelude/url'; import XFileThumbnail from '../../../common/views/components/drive-file-thumbnail.vue'; export default Vue.extend({ @@ -91,7 +90,7 @@ export default Vue.extend({ }, dlUrl(): string { - return appendQuery(this.file.url, 'download'); + return this.file.url; } }, |