Skip to content

Commit

Permalink
WIP: try to get title into header
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Jun 1, 2023
1 parent 348d0f0 commit dedc356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Controller/WizardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function staticSlide($name, $params) {

return [
'type' => 'inline',
'title' => '',
'content' => $template->fetchPage($params)
];
}
Expand Down
7 changes: 6 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
</p>
</div>
<!-- eslint-disable-next-line vue/no-v-html -->
<h2 v-html="oc_defaults.slogan" />
<h2>
{{ getPageTitle }}
</h2>
<p />
</div>
</div>
Expand Down Expand Up @@ -127,6 +129,9 @@ export default {
}
this.currentSlide -= 1
},
getPageTitle() {
this.slideList[this.currentSlide].content.querySelector('.page').getAttribute('data-title')
}
},
}
</script>
Expand Down

0 comments on commit dedc356

Please sign in to comment.