mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 09:33:09 +02:00
Improve usability
This commit is contained in:
parent
3c65e7b76e
commit
7b738deabf
2 changed files with 15 additions and 0 deletions
|
@ -669,6 +669,7 @@ left: "左"
|
||||||
center: "中央"
|
center: "中央"
|
||||||
wide: "広い"
|
wide: "広い"
|
||||||
narrow: "狭い"
|
narrow: "狭い"
|
||||||
|
reloadToApplySetting: "設定はページリロード後に反映されます。今すぐリロードしますか?"
|
||||||
|
|
||||||
_aboutMisskey:
|
_aboutMisskey:
|
||||||
about: "Misskeyはsyuiloによって2014年から開発されている、オープンソースのソフトウェアです。"
|
about: "Misskeyはsyuiloによって2014年から開発されている、オープンソースのソフトウェアです。"
|
||||||
|
|
|
@ -37,6 +37,7 @@ import FormInput from '@/components/form/input.vue';
|
||||||
import FormBase from '@/components/form/base.vue';
|
import FormBase from '@/components/form/base.vue';
|
||||||
import FormGroup from '@/components/form/group.vue';
|
import FormGroup from '@/components/form/group.vue';
|
||||||
import { deckStore } from '@/ui/deck/deck-store';
|
import { deckStore } from '@/ui/deck/deck-store';
|
||||||
|
import * as os from '@/os';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,6 +69,19 @@ export default defineComponent({
|
||||||
columnHeaderHeight: deckStore.makeGetterSetter('columnHeaderHeight'),
|
columnHeaderHeight: deckStore.makeGetterSetter('columnHeaderHeight'),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
async navWindow() {
|
||||||
|
const { canceled } = await os.dialog({
|
||||||
|
type: 'info',
|
||||||
|
text: this.$ts.reloadToApplySetting,
|
||||||
|
showCancelButton: true
|
||||||
|
});
|
||||||
|
if (canceled) return;
|
||||||
|
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$emit('info', this.INFO);
|
this.$emit('info', this.INFO);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue