From 5374f25cf9133e65593f19a351e9c0833bb907d3 Mon Sep 17 00:00:00 2001 From: Oliver Fritz Date: Wed, 24 Jul 2024 15:23:17 +0200 Subject: [PATCH 01/23] feat(project-view): bind tutorial --- src/views/ProjectView.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/ProjectView.vue b/src/views/ProjectView.vue index 81ca8ca..bae20d4 100644 --- a/src/views/ProjectView.vue +++ b/src/views/ProjectView.vue @@ -43,6 +43,7 @@ export default defineComponent({ project: null, projectContributions: [], tasks: null, + tutorial: null, to: null, } }, @@ -116,6 +117,7 @@ export default defineComponent({ onValue(getProjectRef(this.projectId), (snapshot) => { const data = snapshot.val() || {} this.project = data + if (this.project?.tutorialId) this.bindTutorial() }) }, bindProjectContributions() { @@ -157,6 +159,13 @@ export default defineComponent({ this.tasks = tasks }) }, + bindTutorial() { + onValue(getProjectRef(this.project?.tutorialId), (snapshot) => { + const data = snapshot.val() || {} + console.log(this.informationPages) + this.informationPages = data + }) + }, completeOptions(option, index) { option.title ??= option.label option.iconColor ??= option.color || '#d1dad1' @@ -235,6 +244,7 @@ export default defineComponent({