+
+ this.attachLinkButton.addEventListener('click', () => {
+ this.showSection('links');
+ });
+ }
+
+ showSection(section) {
+ const sectionMap = {
+ links: this.linksContainer,
+ edit: this.editContainer,
+ list: this.listContainer,
+ };
+
+ for (const [name, elem] of Object.entries(sectionMap)) {
+ elem.toggleAttribute('hidden', name !== section);
+ }