Skip to content
Snippets Groups Projects
Commit db883df7 authored by Julian's avatar Julian
Browse files

Display correct title based on pageType

parent 5c767dcd
No related branches found
No related tags found
1 merge request!363Resolve "Add absence overview page"
...@@ -235,6 +235,7 @@ export default { ...@@ -235,6 +235,7 @@ export default {
// might skip query until both set = atomic // might skip query until both set = atomic
if (Object.hasOwn(selectedFilters, "pageType")) { if (Object.hasOwn(selectedFilters, "pageType")) {
this.absencesExist = true; this.absencesExist = true;
this.$setToolBarTitle(this.$t(`alsijil.coursebook.title_${selectedFilters.pageType}`), null);
} }
} }
}, },
...@@ -272,6 +273,9 @@ export default { ...@@ -272,6 +273,9 @@ export default {
this.selectedParticipations = {}; this.selectedParticipations = {};
}, },
}, },
mounted() {
this.$setToolBarTitle(this.$t(`alsijil.coursebook.title_${this.pageType}`), null);
},
}; };
</script> </script>
......
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
} }
} }
}, },
"title_absences": "Kursbuch · Abwesenheiten",
"title_documentations": "Kursbuch",
"title_plural": "Kursbuch" "title_plural": "Kursbuch"
}, },
"excuse_types": { "excuse_types": {
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
"menu_title": "Coursebook", "menu_title": "Coursebook",
"page_title": "Coursebook for {name}", "page_title": "Coursebook for {name}",
"title_plural": "Coursebook", "title_plural": "Coursebook",
"title_documentations": "Coursebook",
"title_absences": "Coursebook · Absences",
"status": { "status": {
"available": "Documentation available", "available": "Documentation available",
"missing": "Documentation missing", "missing": "Documentation missing",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment