summaryrefslogtreecommitdiff
path: root/src/client/components/media-image.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-12-19 10:55:52 +0900
committerGitHub <noreply@github.com>2020-12-19 10:55:52 +0900
commit43930e6a84d11fb00b9ae9ac153c2538e179d538 (patch)
treec6f6d98976d9ea5d198d0c1249b7b2a8749353f3 /src/client/components/media-image.vue
parentBump vue-i18n from 9.0.0-beta.7 to 9.0.0-beta.14 (#6993) (diff)
downloadmisskey-43930e6a84d11fb00b9ae9ac153c2538e179d538.tar.gz
misskey-43930e6a84d11fb00b9ae9ac153c2538e179d538.tar.bz2
misskey-43930e6a84d11fb00b9ae9ac153c2538e179d538.zip
Storage improve (#6976)
* wip * wip * wip * wip * wip * Update storage.ts * wip * wip * wip * wip * Update storage.ts * Update storage.ts * wip * wip * wip * wip * wip * wip * wip * Update storage.ts * wip * wip * wip * wip * :pizza: * wip * wip * wip * wip * wip * wip * Update deck-storage.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update store.ts * wip * wip * wip * wip * Update init.ts * wip * wip * Update pizzax.ts * wip * wip * Update timeline.vue * Update init.ts * wip * wip * Update init.ts
Diffstat (limited to 'src/client/components/media-image.vue')
-rw-r--r--src/client/components/media-image.vue10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/components/media-image.vue b/src/client/components/media-image.vue
index a9d0023cc2..55d334987f 100644
--- a/src/client/components/media-image.vue
+++ b/src/client/components/media-image.vue
@@ -52,13 +52,11 @@ export default defineComponent({
},
computed: {
url(): any {
- let url = this.$store.state.device.disableShowingAnimatedImages
+ let url = this.$store.state.disableShowingAnimatedImages
? getStaticImageUrl(this.image.thumbnailUrl)
: this.image.thumbnailUrl;
- if (this.$store.state.device.loadRemoteMedia) {
- url = null;
- } else if (this.raw || this.$store.state.device.loadRawImages) {
+ if (this.raw || this.$store.state.loadRawImages) {
url = this.image.url;
}
@@ -68,7 +66,7 @@ export default defineComponent({
created() {
// Plugin:register_note_view_interruptor を使って書き換えられる可能性があるためwatchする
this.$watch('image', () => {
- this.hide = (this.$store.state.device.nsfw === 'force') ? true : this.image.isSensitive && (this.$store.state.device.nsfw !== 'ignore');
+ this.hide = (this.$store.state.nsfw === 'force') ? true : this.image.isSensitive && (this.$store.state.nsfw !== 'ignore');
if (this.image.blurhash) {
this.color = extractAvgColorFromBlurhash(this.image.blurhash);
}
@@ -79,7 +77,7 @@ export default defineComponent({
},
methods: {
onClick() {
- if (this.$store.state.device.imageNewTab) {
+ if (this.$store.state.imageNewTab) {
window.open(this.image.url, '_blank');
} else {
os.popup(ImageViewer, {