From 3ea7a49c1c832bba12ba0591e0cc6cffbd2fc4db Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 24 May 2019 19:36:35 +0900 Subject: [PATCH] Show page title --- src/client/app/common/views/pages/page/page.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/pages/page/page.vue b/src/client/app/common/views/pages/page/page.vue index 649bc1e17d..329046302b 100644 --- a/src/client/app/common/views/pages/page/page.vue +++ b/src/client/app/common/views/pages/page/page.vue @@ -25,7 +25,7 @@ import Vue from 'vue'; import i18n from '../../../../i18n'; import { faHeart as faHeartS } from '@fortawesome/free-solid-svg-icons'; -import { faHeart } from '@fortawesome/free-regular-svg-icons'; +import { faHeart, faStickyNote } from '@fortawesome/free-regular-svg-icons'; import XBlock from './page.block.vue'; import { ASEvaluator } from '../../../../../../misc/aiscript/evaluator'; import { collectPageVars } from '../../../scripts/collect-page-vars'; @@ -91,6 +91,10 @@ export default Vue.extend({ username: this.username, }).then(page => { this.page = page; + this.$emit('init', { + title: this.page.title, + icon: faStickyNote + }); const pageVars = this.getPageVars(); this.script = new Script(new ASEvaluator(this.page.variables, pageVars, { randomSeed: Math.random(),