wip
This commit is contained in:
parent
fe5171d1c2
commit
e3679f739b
|
@ -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 });
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -136,7 +136,7 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
post() {
|
||||
this.$root.post();
|
||||
os.post();
|
||||
},
|
||||
|
||||
search() {
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue