+
@@ -20,6 +20,13 @@ export default Vue.extend({
show: true,
};
},
+ computed: {
+ keymap(): any {
+ return {
+ 'esc': this.close,
+ };
+ },
+ },
methods: {
close() {
this.show = false;
diff --git a/src/client/pages/settings/general.vue b/src/client/pages/settings/general.vue
index 6b4825c7a..5a176c022 100644
--- a/src/client/pages/settings/general.vue
+++ b/src/client/pages/settings/general.vue
@@ -19,6 +19,7 @@
{{ $t('markAsReadAllTalkMessages') }}
+ {{ $t('openImageInNewTab') }}
{{ $t('disableAnimatedMfm') }}
{{ $t('reduceUiAnimation') }}
@@ -96,6 +97,11 @@ export default Vue.extend({
get() { return this.$store.state.device.useOsNativeEmojis; },
set(value) { this.$store.commit('device/set', { key: 'useOsNativeEmojis', value }); }
},
+
+ imageNewTab: {
+ get() { return this.$store.state.device.imageNewTab; },
+ set(value) { this.$store.commit('device/set', { key: 'imageNewTab', value }); }
+ },
},
watch: {
diff --git a/src/client/store.ts b/src/client/store.ts
index 13722c1bb..4ebaa9ba5 100644
--- a/src/client/store.ts
+++ b/src/client/store.ts
@@ -38,6 +38,7 @@ const defaultDeviceSettings = {
theme: 'light',
animation: true,
animatedMfm: true,
+ imageNewTab: false,
userData: {},
};