stable

Clone or download

Read-only

Do not store twice the title of the current folder

Part of the story #12443 : Table: Minimal folder display No need to store twice the title in the state: - in the current_folder_parents array (last item title) - in the current_folder_title Instead, use a getters to return the last item title from the current_folder_parents. No functional changes except a bug fix with root folder: go deep in the hierarchy, then in the breadcrumbs click on "Documents". The browser title should change. Note: there is still naming issues (mix of current_folder_parents/breadcrumbs notions) that will be clarified in next changesets. Change-Id: If19aeaf5c21d2e3f7a3373af97500f0a8e3c67c8

Modified Files

Name
M plugins/document/scripts/document/app.spec.js +1 −0 Go to diff View file
M plugins/document/scripts/document/components/App.vue +6 −3 Go to diff View file
M plugins/document/scripts/document/components/FolderView.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/RootFolder.vue +0 −1 Go to diff View file
M plugins/document/scripts/document/store/actions.js +4 −7 Go to diff View file
M plugins/document/scripts/document/store/actions.spec.js +0 −5 Go to diff View file
M plugins/document/scripts/document/store/getters.js +8 −0 Go to diff View file
A plugins/document/scripts/document/store/getters.spec.js +60 −0 Go to diff View file
M plugins/document/scripts/document/store/mutations.js +2 −8 Go to diff View file
M plugins/document/scripts/document/store/mutations.spec.js +2 −18 Go to diff View file
M plugins/document/scripts/document/store/state.js +2 −1 Go to diff View file