MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / show

Function show

src/components/settingsPage.js:122–140  ·  view source on GitHub ↗

* Show settings page * @param {string} goTo Key of setting to scroll to and select * @returns {void}

(goTo)

Source from the content-addressed store, hash-verified

120 * @returns {void}
121 */
122 show(goTo) {
123 actionStack.push({
124 id: title,
125 action: $page.hide,
126 });
127 app.append($page);
128 helpers.showAd();
129
130 if (goTo) {
131 const $item = $list.get(`[data-key="${goTo}"]`);
132 if (!$item) return;
133
134 $item.scrollIntoView();
135 $item.click();
136 return;
137 }
138
139 $list.focus();
140 },
141 hide() {
142 $page.hide();
143 },

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
focusMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected