mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 22:15:41 +02:00
[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);
|
||||
|
||||
Reference in New Issue
Block a user