mirror of https://github.com/Lissy93/dashy.git
⚡ If only 1 section set, then expand on load
This commit is contained in:
parent
e971a0b56b
commit
5fe79711bd
|
@ -71,7 +71,11 @@ export default {
|
|||
},
|
||||
},
|
||||
mounted() {
|
||||
this.openDefaultSection();
|
||||
if (this.sections.length === 1) { // If only 1 section, go ahead and open it
|
||||
this.openSection(0);
|
||||
} else { // Otherwise, see if user set a default section, and open that
|
||||
this.openDefaultSection();
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue