MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / deletePanel

Function deletePanel

js/main copy.js:140–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 * Redraw the page.
139 */
140 const deletePanel = function() {
141 post.deletePanel(currentlySelectedPanelIndex);
142 if (currentlySelectedPanelIndex > 0) {
143 currentlySelectedPanelIndex--;
144 }
145 if (post.panels.length == 0) {
146 newPanel();
147 } else {
148 updateForm();
149 redraw();
150 }
151 };
152
153 /**
154 * Shift the currently selected panel left.

Callers

nothing calls this directly

Calls 4

deletePanelMethod · 0.80
newPanelFunction · 0.70
updateFormFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected