wip
This commit is contained in:
parent
fe5171d1c2
commit
e3679f739b
|
@ -440,7 +440,7 @@ export default defineComponent({
|
||||||
|
|
||||||
reply(viaKeyboard = false) {
|
reply(viaKeyboard = false) {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
this.$root.post({
|
os.post({
|
||||||
reply: this.appearNote,
|
reply: this.appearNote,
|
||||||
animation: !viaKeyboard,
|
animation: !viaKeyboard,
|
||||||
}, () => {
|
}, () => {
|
||||||
|
@ -464,7 +464,7 @@ export default defineComponent({
|
||||||
text: this.$t('quote'),
|
text: this.$t('quote'),
|
||||||
icon: faQuoteRight,
|
icon: faQuoteRight,
|
||||||
action: () => {
|
action: () => {
|
||||||
this.$root.post({
|
os.post({
|
||||||
renote: this.appearNote,
|
renote: this.appearNote,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -550,7 +550,7 @@ export default defineComponent({
|
||||||
noteId: this.appearNote.id
|
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,
|
icon: faEnvelope,
|
||||||
text: this.$t('sendMessage'),
|
text: this.$t('sendMessage'),
|
||||||
action: () => {
|
action: () => {
|
||||||
this.$root.post({ specified: this.user });
|
os.post({ specified: this.user });
|
||||||
}
|
}
|
||||||
}, this.$store.state.i.id != this.user.id ? {
|
}, this.$store.state.i.id != this.user.id ? {
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
|
|
@ -136,7 +136,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
post() {
|
post() {
|
||||||
this.$root.post();
|
os.post();
|
||||||
},
|
},
|
||||||
|
|
||||||
search() {
|
search() {
|
||||||
|
|
|
@ -119,7 +119,9 @@ export default defineComponent({
|
||||||
os.modal(await import('@/components/notification-setting-window.vue').then(x => x.default), {
|
os.modal(await import('@/components/notification-setting-window.vue').then(x => x.default), {
|
||||||
includingTypes,
|
includingTypes,
|
||||||
showGlobalToggle: false,
|
showGlobalToggle: false,
|
||||||
}).then(async ({ includingTypes: value }: any) => {
|
}).then(async (res) => {
|
||||||
|
if (res == null) return;
|
||||||
|
const { includingTypes: value } = res;
|
||||||
await os.api('i/update', {
|
await os.api('i/update', {
|
||||||
mutingNotificationTypes: notificationTypes.filter(x => !value.includes(x)),
|
mutingNotificationTypes: notificationTypes.filter(x => !value.includes(x)),
|
||||||
}).then(i => {
|
}).then(i => {
|
||||||
|
|
Loading…
Reference in New Issue