diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-08 02:09:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-08 02:09:15 +0900 |
| commit | 3261d54cd34468f3ddbf555fd79b199ba90b131f (patch) | |
| tree | 6c61adf312c0b65d0eeb3293f7c7f259a18e44ee /src/client/app/mobile/views | |
| parent | Fix bug (diff) | |
| download | misskey-3261d54cd34468f3ddbf555fd79b199ba90b131f.tar.gz misskey-3261d54cd34468f3ddbf555fd79b199ba90b131f.tar.bz2 misskey-3261d54cd34468f3ddbf555fd79b199ba90b131f.zip | |
Resolve #2320
Diffstat (limited to 'src/client/app/mobile/views')
| -rw-r--r-- | src/client/app/mobile/views/components/media-image.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/app/mobile/views/components/media-image.vue b/src/client/app/mobile/views/components/media-image.vue index 5da888984c..c555d6a611 100644 --- a/src/client/app/mobile/views/components/media-image.vue +++ b/src/client/app/mobile/views/components/media-image.vue @@ -5,11 +5,12 @@ <span>%i18n:@click-to-show%</span> </div> </div> -<a class="gqnyydlzavusgskkfvwvjiattxdzsqlf" v-else :href="image.url" target="_blank" :style="style" :title="image.name"></a> +<a class="gqnyydlzavusgskkfvwvjiattxdzsqlf" v-else :href="image.url" target="_blank" :style="style" :title="image.name" @click.prevent="onClick"></a> </template> <script lang="ts"> import Vue from 'vue'; +import ImageViewer from '../../../common/views/components/image-viewer.vue'; export default Vue.extend({ props: { @@ -41,6 +42,13 @@ export default Vue.extend({ 'background-image': url }; } + }, + methods: { + onClick() { + (this as any).os.new(ImageViewer, { + image: this.image + }); + } } }); </script> |