[Client] Fix bug
This commit is contained in:
@@ -101,7 +101,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
move() {
|
||||
(this as any).apis.chooseDriveFolder().then(folder => {
|
||||
this.$root.apis.chooseDriveFolder().then(folder => {
|
||||
this.$root.api('drive/files/update', {
|
||||
fileId: this.file.id,
|
||||
folderId: folder == null ? null : folder.id
|
||||
|
@@ -439,7 +439,7 @@ export default Vue.extend({
|
||||
alert(this.$t('root-move-alert'));
|
||||
return;
|
||||
}
|
||||
(this as any).apis.chooseDriveFolder().then(folder => {
|
||||
this.$root.apis.chooseDriveFolder().then(folder => {
|
||||
this.$root.api('drive/folders/update', {
|
||||
parentId: folder ? folder.id : null,
|
||||
folderId: this.folder.id
|
||||
|
@@ -196,13 +196,13 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
reply() {
|
||||
(this as any).apis.post({
|
||||
this.$root.apis.post({
|
||||
reply: this.p
|
||||
});
|
||||
},
|
||||
|
||||
renote() {
|
||||
(this as any).apis.post({
|
||||
this.$root.apis.post({
|
||||
renote: this.p
|
||||
});
|
||||
},
|
||||
|
@@ -220,7 +220,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
chooseFileFromDrive() {
|
||||
(this as any).apis.chooseDriveFile({
|
||||
this.$root.apis.chooseDriveFile({
|
||||
multiple: true
|
||||
}).then(files => {
|
||||
files.forEach(this.attachMedia);
|
||||
@@ -279,7 +279,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
addVisibleUser() {
|
||||
(this as any).apis.input({
|
||||
this.$root.apis.input({
|
||||
title: this.$t('username-prompt')
|
||||
}).then(acct => {
|
||||
if (acct.startsWith('@')) acct = acct.substr(1);
|
||||
|
@@ -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: {
|
||||
|
Reference in New Issue
Block a user