mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 22:45:40 +02:00
wip
This commit is contained in:
@@ -128,7 +128,7 @@ export default defineComponent({
|
||||
async add(e) {
|
||||
const files = await selectFile(this, e.currentTarget || e.target, null, true);
|
||||
|
||||
const dialog = this.$root.showDialog({
|
||||
const dialog = this.$store.dispatch('showDialog', {
|
||||
type: 'waiting',
|
||||
text: this.$t('doing') + '...',
|
||||
showOkButton: false,
|
||||
@@ -141,7 +141,7 @@ export default defineComponent({
|
||||
})))
|
||||
.then(() => {
|
||||
this.$refs.emojis.reload();
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'success',
|
||||
iconOnly: true, autoClose: true
|
||||
});
|
||||
@@ -159,7 +159,7 @@ export default defineComponent({
|
||||
aliases: this.aliases.split(' '),
|
||||
});
|
||||
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'success',
|
||||
iconOnly: true, autoClose: true
|
||||
});
|
||||
@@ -168,7 +168,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
async del() {
|
||||
const { canceled } = await this.$root.showDialog({
|
||||
const { canceled } = await this.$store.dispatch('showDialog', {
|
||||
type: 'warning',
|
||||
text: this.$t('removeAreYouSure', { x: this.selected.name }),
|
||||
showCancelButton: true
|
||||
@@ -187,12 +187,12 @@ export default defineComponent({
|
||||
emojiId: this.selectedRemote.id,
|
||||
}).then(() => {
|
||||
this.$refs.emojis.reload();
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'success',
|
||||
iconOnly: true, autoClose: true
|
||||
});
|
||||
}).catch(e => {
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'error',
|
||||
text: e
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user