You can now edit sections and items from the UI 🤓

This commit is contained in:
Alicia Sykes
2021-05-16 21:17:32 +01:00
parent 88a3ae9c3a
commit 25dc8cc4ea
6 changed files with 92 additions and 51 deletions

View File

@@ -84,7 +84,10 @@ export default {
getSections(sections) {
// If the user has stored sections in local storage, return those
const localSections = localStorage[localStorageKeys.CONF_SECTIONS];
if (localSections && localSections.length >= 1) return localSections;
if (localSections) {
const json = JSON.parse(localSections);
if (json.length >= 1) return json;
}
// Otherwise, return the usuall data from conf.yml
return sections;
},