arduosoft / RawCMS

RawCMS is the headless CMS written in asp.net core build for developers that embraces API first technology. Please give us a feedback!
https://forms.gle/wvu1HF9P52ZdXujv6
GNU General Public License v3.0
173 stars 72 forks source link

Title on app top bar #128

Closed marcuson closed 4 years ago

marcuson commented 4 years ago

User story

For now, the title of each section of the FE app is placed under the app top bar, above any other content. The idea is to place such title in the top bar itself in the center (see image below, example based on entities route). image

Task

The current title to show in the top bar should be stored inside Vuex. You can edit the Vuex store configuration in file raw-cms-app/modules/core/config.js and add a new property on state, e.g. called topBarTitle, with related mutation and action (see https://vuex.vuejs.org/ for more info on Vuex). Then the top bar should have a computed property which reads the title on Vuex state and renders it in the template.

Acceptance Criteria

This is the expected final result (example based on entities route): image The title on the top bar should update according to current active route.