diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-04-20 21:35:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-04-20 21:35:27 +0900 |
| commit | 2ee0e07bb6346d29bc5e57ec8aac348143e2d50f (patch) | |
| tree | b85c6ac241e440606a5cd3094d2afe102a582f15 /src/client/components/page/page.button.vue | |
| parent | Merge pull request #6282 from syuilo/patch/autogen/v11 (diff) | |
| download | misskey-2ee0e07bb6346d29bc5e57ec8aac348143e2d50f.tar.gz misskey-2ee0e07bb6346d29bc5e57ec8aac348143e2d50f.tar.bz2 misskey-2ee0e07bb6346d29bc5e57ec8aac348143e2d50f.zip | |
refactor(client): :sparkles:
Diffstat (limited to 'src/client/components/page/page.button.vue')
| -rw-r--r-- | src/client/components/page/page.button.vue | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/client/components/page/page.button.vue b/src/client/components/page/page.button.vue index 148fdc8e9c..83753b4e80 100644 --- a/src/client/components/page/page.button.vue +++ b/src/client/components/page/page.button.vue @@ -1,6 +1,6 @@ <template> <div> - <mk-button class="kudkigyw" @click="click()" :primary="value.primary">{{ script.interpolate(value.text) }}</mk-button> + <mk-button class="kudkigyw" @click="click()" :primary="value.primary">{{ hpml.interpolate(value.text) }}</mk-button> </div> </template> @@ -16,35 +16,35 @@ export default Vue.extend({ value: { required: true }, - script: { + hpml: { required: true } }, methods: { click() { if (this.value.action === 'dialog') { - this.script.eval(); + this.hpml.eval(); this.$root.dialog({ - text: this.script.interpolate(this.value.content) + text: this.hpml.interpolate(this.value.content) }); } else if (this.value.action === 'resetRandom') { - this.script.aoiScript.updateRandomSeed(Math.random()); - this.script.eval(); + this.hpml.updateRandomSeed(Math.random()); + this.hpml.eval(); } else if (this.value.action === 'pushEvent') { this.$root.api('page-push', { - pageId: this.script.page.id, + pageId: this.hpml.page.id, event: this.value.event, ...(this.value.var ? { - var: this.script.vars[this.value.var] + var: this.hpml.vars[this.value.var] } : {}) }); this.$root.dialog({ type: 'success', - text: this.script.interpolate(this.value.message) + text: this.hpml.interpolate(this.value.message) }); } else if (this.value.action === 'callAiScript') { - this.script.callAiScript(this.value.fn); + this.hpml.callAiScript(this.value.fn); } } } |