色々な修正; Fix #4709 (#4714)

* Fix a la carte 1

* use dialog instead of alert() etc
This commit is contained in:
tamaina 2019-04-16 13:05:10 +09:00 committed by syuilo
parent ba3879a95a
commit f966d0b32c
21 changed files with 79 additions and 29 deletions

View file

@ -32,7 +32,7 @@ export default Vue.extend({
this.fetch();
},
mounted() {
document.title = `${this.$root.instanceName} | %i18n:@notifications%`;
document.title = `${this.$root.instanceName} | ${this.$t('@.favorites')}`;
},
methods: {
fetch() {

View file

@ -15,7 +15,7 @@ export default Vue.extend({
XReversi: () => import('../../../../common/views/components/games/reversi/reversi.vue').then(m => m.default)
},
mounted() {
document.title = `${this.$root.instanceName} %i18n:@reversi%`;
document.title = `${this.$root.instanceName} | ${this.$t('reversi')}`;
},
methods: {
nav(game, actualNav) {

View file

@ -50,7 +50,7 @@ export default Vue.extend({
}
},
mounted() {
document.title = `%i18n:@search%: ${this.q} | ${this.$root.instanceName}`;
document.title = `${this.$t('search')}: ${this.q} | ${this.$root.instanceName}`;
},
methods: {
inited() {

View file

@ -29,7 +29,8 @@
</header>
<x-draggable
:list="widgets"
:options="{ handle: '.handle', animation: 150 }"
handle=".handle"
animation="150"
@sort="onWidgetSort"
>
<div v-for="widget in widgets" class="customize-container" :key="widget.id">
@ -106,7 +107,10 @@ export default Vue.extend({
methods: {
hint() {
alert(this.$t('widgets-hints'));
this.$root.dialog({
type: 'info',
text: this.$t('widgets-hints')
});
},
widgetFunc(id) {