This commit is contained in:
syuilo 2020-09-20 11:26:09 +09:00
parent fe5171d1c2
commit e3679f739b
4 changed files with 8 additions and 6 deletions

View File

@ -440,7 +440,7 @@ export default defineComponent({
reply(viaKeyboard = false) {
pleaseLogin();
this.$root.post({
os.post({
reply: this.appearNote,
animation: !viaKeyboard,
}, () => {
@ -464,7 +464,7 @@ export default defineComponent({
text: this.$t('quote'),
icon: faQuoteRight,
action: () => {
this.$root.post({
os.post({
renote: this.appearNote,
});
}
@ -550,7 +550,7 @@ export default defineComponent({
noteId: this.appearNote.id
});
this.$root.post({ initialNote: this.appearNote, renote: this.appearNote.renote, reply: this.appearNote.reply });
os.post({ initialNote: this.appearNote, renote: this.appearNote.renote, reply: this.appearNote.reply });
});
},

View File

@ -30,7 +30,7 @@ export default defineComponent({
icon: faEnvelope,
text: this.$t('sendMessage'),
action: () => {
this.$root.post({ specified: this.user });
os.post({ specified: this.user });
}
}, this.$store.state.i.id != this.user.id ? {
type: 'link',

View File

@ -136,7 +136,7 @@ export default defineComponent({
},
post() {
this.$root.post();
os.post();
},
search() {

View File

@ -119,7 +119,9 @@ export default defineComponent({
os.modal(await import('@/components/notification-setting-window.vue').then(x => x.default), {
includingTypes,
showGlobalToggle: false,
}).then(async ({ includingTypes: value }: any) => {
}).then(async (res) => {
if (res == null) return;
const { includingTypes: value } = res;
await os.api('i/update', {
mutingNotificationTypes: notificationTypes.filter(x => !value.includes(x)),
}).then(i => {