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

Function updateSideButtonContainer

src/lib/editorManager.js:2821–2829  ·  view source on GitHub ↗

* Updates the side button container based on the value of `showSideButtons` in `appSettings`. * If `showSideButtons` is `false`, the side button container is removed from the DOM. * If `showSideButtons` is `true`, the side button container is appended to the body element.

()

Source from the content-addressed store, hash-verified

2819 * If `showSideButtons` is `true`, the side button container is appended to the body element.
2820 */
2821 function updateSideButtonContainer() {
2822 const { showSideButtons } = appSettings.value;
2823 if (!showSideButtons) {
2824 sideButtonContainer.remove();
2825 return;
2826 }
2827
2828 $body.append(sideButtonContainer);
2829 }
2830
2831 /**
2832 * Updates the margin of the editor and optionally updates the gutter settings.

Callers 2

EditorManagerFunction · 0.85
setupEditorFunction · 0.85

Calls 2

appendMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected