[Client] Fix bug
This commit is contained in:
parent
60ef3e3563
commit
fccbecf159
44 changed files with 83 additions and 81 deletions
|
|
@ -45,7 +45,7 @@ export default Vue.extend({
|
|||
window.addEventListener('popstate', this.onPopState);
|
||||
},
|
||||
mounted() {
|
||||
document.title = `${this.$root.os.instanceName} Drive`;
|
||||
document.title = `${this.$root.instanceName} Drive`;
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.removeEventListener('popstate', this.onPopState);
|
||||
|
|
@ -64,7 +64,7 @@ export default Vue.extend({
|
|||
(this.$refs as any).browser.openContextMenu();
|
||||
},
|
||||
onMoveRoot(silent) {
|
||||
const title = `${this.$root.os.instanceName} Drive`;
|
||||
const title = `${this.$root.instanceName} Drive`;
|
||||
|
||||
if (!silent) {
|
||||
// Rewrite URL
|
||||
|
|
@ -77,7 +77,7 @@ export default Vue.extend({
|
|||
this.folder = null;
|
||||
},
|
||||
onOpenFolder(folder, silent) {
|
||||
const title = `${folder.name} | ${this.$root.os.instanceName} Drive`;
|
||||
const title = `${folder.name} | ${this.$root.instanceName} Drive`;
|
||||
|
||||
if (!silent) {
|
||||
// Rewrite URL
|
||||
|
|
@ -90,7 +90,7 @@ export default Vue.extend({
|
|||
this.folder = folder;
|
||||
},
|
||||
onOpenFile(file, silent) {
|
||||
const title = `${file.name} | ${this.$root.os.instanceName} Drive`;
|
||||
const title = `${file.name} | ${this.$root.instanceName} Drive`;
|
||||
|
||||
if (!silent) {
|
||||
// Rewrite URL
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export default Vue.extend({
|
|||
this.fetch();
|
||||
},
|
||||
mounted() {
|
||||
document.title = `${this.$root.os.instanceName} | %i18n:@notifications%`;
|
||||
document.title = `${this.$root.instanceName} | %i18n:@notifications%`;
|
||||
},
|
||||
methods: {
|
||||
fetch() {
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export default Vue.extend({
|
|||
this.user = user;
|
||||
this.fetching = false;
|
||||
|
||||
document.title = `${this.$t('followers-of').replace('{}', this.name)} | ${this.$root.os.instanceName}`;
|
||||
document.title = `${this.$t('followers-of').replace('{}', this.name)} | ${this.$root.instanceName}`;
|
||||
});
|
||||
},
|
||||
onLoaded() {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export default Vue.extend({
|
|||
this.user = user;
|
||||
this.fetching = false;
|
||||
|
||||
document.title = `${this.$t('followers-of').replace('{}', this.name)} | ${this.$root.os.instanceName}`;
|
||||
document.title = `${this.$t('followers-of').replace('{}', this.name)} | ${this.$root.instanceName}`;
|
||||
});
|
||||
},
|
||||
onLoaded() {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export default Vue.extend({
|
|||
XReversi: () => import('../../../../common/views/components/games/reversi/reversi.vue')
|
||||
},
|
||||
mounted() {
|
||||
document.title = `${this.$root.os.instanceName} %i18n:@reversi%`;
|
||||
document.title = `${this.$root.instanceName} %i18n:@reversi%`;
|
||||
},
|
||||
methods: {
|
||||
nav(game, actualNav) {
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
mounted() {
|
||||
document.title = this.$root.os.instanceName;
|
||||
document.title = this.$root.instanceName;
|
||||
|
||||
Progress.start();
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ export default Vue.extend({
|
|||
|
||||
methods: {
|
||||
fn() {
|
||||
(this as any).apis.post();
|
||||
this.$root.apis.post();
|
||||
},
|
||||
|
||||
saveSrc() {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export default Vue.extend({
|
|||
this.user = user;
|
||||
this.fetching = false;
|
||||
|
||||
document.title = `${this.$t('@.messaging')}: ${Vue.filter('userName')(this.user)} | ${this.$root.os.instanceName}`;
|
||||
document.title = `${this.$t('@.messaging')}: ${Vue.filter('userName')(this.user)} | ${this.$root.instanceName}`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import getAcct from '../../../../../misc/acct/render';
|
|||
export default Vue.extend({
|
||||
i18n: i18n(),
|
||||
mounted() {
|
||||
document.title = `${this.$root.os.instanceName} ${this.$t('@.messaging')}`;
|
||||
document.title = `${this.$root.instanceName} ${this.$t('@.messaging')}`;
|
||||
},
|
||||
methods: {
|
||||
navigate(user) {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default Vue.extend({
|
|||
this.fetch();
|
||||
},
|
||||
mounted() {
|
||||
document.title = this.$root.os.instanceName;
|
||||
document.title = this.$root.instanceName;
|
||||
},
|
||||
methods: {
|
||||
fetch() {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
document.title = `%i18n:@search%: ${this.q} | ${this.$root.os.instanceName}`;
|
||||
document.title = `%i18n:@search%: ${this.q} | ${this.$root.instanceName}`;
|
||||
|
||||
this.fetch();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -343,12 +343,12 @@ export default Vue.extend({
|
|||
this.checkingForUpdate = false;
|
||||
this.latestVersion = newer;
|
||||
if (newer == null) {
|
||||
(this as any).apis.dialog({
|
||||
this.$root.apis.dialog({
|
||||
title: this.$t('no-updates'),
|
||||
text: this.$t('no-updates-desc')
|
||||
});
|
||||
} else {
|
||||
(this as any).apis.dialog({
|
||||
this.$root.apis.dialog({
|
||||
title: this.$t('update-available'),
|
||||
text: this.$t('update-available-desc')
|
||||
});
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export default Vue.extend({
|
|||
},
|
||||
methods: {
|
||||
fn() {
|
||||
(this as any).apis.input({
|
||||
this.$root.apis.input({
|
||||
title: this.$t('enter-list-name'),
|
||||
}).then(async title => {
|
||||
const list = await this.$root.api('users/lists/create', {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export default Vue.extend({
|
|||
this.fetching = false;
|
||||
|
||||
Progress.done();
|
||||
document.title = `${Vue.filter('userName')(this.user)} | ${this.$root.os.instanceName}`;
|
||||
document.title = `${Vue.filter('userName')(this.user)} | ${this.$root.instanceName}`;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
mounted() {
|
||||
document.title = this.$root.os.instanceName;
|
||||
document.title = this.$root.instanceName;
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue