Refactor client (#3178)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
@ -101,7 +101,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
move() {
|
||||
this.$root.apis.chooseDriveFolder().then(folder => {
|
||||
this.$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.$root.apis.chooseDriveFolder().then(folder => {
|
||||
this.$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.$root.apis.post({
|
||||
this.$post({
|
||||
reply: this.p
|
||||
});
|
||||
},
|
||||
|
||||
renote() {
|
||||
this.$root.apis.post({
|
||||
this.$post({
|
||||
renote: this.p
|
||||
});
|
||||
},
|
||||
|
@ -220,7 +220,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
chooseFileFromDrive() {
|
||||
this.$root.apis.chooseDriveFile({
|
||||
this.$chooseDriveFile({
|
||||
multiple: true
|
||||
}).then(files => {
|
||||
files.forEach(this.attachMedia);
|
||||
@ -279,7 +279,7 @@ export default Vue.extend({
|
||||
},
|
||||
|
||||
addVisibleUser() {
|
||||
this.$root.apis.input({
|
||||
this.$input({
|
||||
title: this.$t('username-prompt')
|
||||
}).then(acct => {
|
||||
if (acct.startsWith('@')) acct = acct.substr(1);
|
||||
|
@ -7,7 +7,7 @@
|
||||
<button class="nav" @click="$parent.isDrawerOpening = true"><fa icon="bars"/></button>
|
||||
<i v-if="hasUnreadNotification || hasUnreadMessagingMessage || hasGameInvitation" class="circle"><fa icon="circle"/></i>
|
||||
<h1>
|
||||
<slot>{{ os.instanceName }}</slot>
|
||||
<slot>{{ $root.instanceName }}</slot>
|
||||
</h1>
|
||||
<slot name="func"></slot>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user