🔥 Remove no longer needed props, replaced with VueX state

This commit is contained in:
Alicia Sykes 2021-10-09 22:41:28 +01:00
parent 0e5eca1b7b
commit 004bffce18
2 changed files with 9 additions and 6 deletions

View File

@ -51,9 +51,6 @@ export default {
displayLayout: String, displayLayout: String,
iconSize: String, iconSize: String,
externalThemes: Object, externalThemes: Object,
appConfig: Object,
pageInfo: Object,
sections: Array,
modalOpen: Boolean, modalOpen: Boolean,
}, },
components: { components: {
@ -69,6 +66,15 @@ export default {
IconClose, IconClose,
}, },
computed: { computed: {
sections() {
return this.$store.getters.sections;
},
appConfig() {
return this.$store.getters.appConfig;
},
pageInfo() {
return this.$store.getters.pageInfo;
},
/** /**
* Determines which button should display, based on the user type * Determines which button should display, based on the user type
* 0 = Auth not configured, don't show anything * 0 = Auth not configured, don't show anything

View File

@ -10,9 +10,6 @@
:displayLayout="layout" :displayLayout="layout"
:iconSize="itemSizeBound" :iconSize="itemSizeBound"
:externalThemes="getExternalCSSLinks()" :externalThemes="getExternalCSSLinks()"
:sections="allSections"
:appConfig="appConfig"
:pageInfo="pageInfo"
:modalOpen="modalOpen" :modalOpen="modalOpen"
class="settings-outer" class="settings-outer"
/> />