MisskeyPagesにイベント送信ボタンを追加

This commit is contained in:
syuilo 2019-07-06 18:14:50 +09:00
parent 5ae6b0058f
commit 64397708fd
5 changed files with 72 additions and 3 deletions

View file

@ -27,6 +27,16 @@ export default Vue.extend({
} else if (this.value.action === 'resetRandom') {
this.script.aiScript.updateRandomSeed(Math.random());
this.script.eval();
} else if (this.value.action === 'pushEvent') {
this.$root.api('page-push', {
pageId: this.script.page.id,
event: this.value.event
});
this.$root.dialog({
type: 'success',
text: this.script.interpolate(this.value.message)
});
}
}
}