mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-20 20:25:18 +02:00
⚡ 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() {
|
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>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user