MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / updateInitialText

Function updateInitialText

ui/media/js/main.js:1697–1715  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1695}
1696
1697function updateInitialText() {
1698 if (document.querySelector(".imageTaskContainer") === null) {
1699 if (undoBuffer.length > 0) {
1700 initialText.prepend(undoButton)
1701 }
1702 previewTools.classList.add("displayNone")
1703 initialText.classList.remove("displayNone")
1704 supportBanner.classList.add("displayNone")
1705 } else {
1706 initialText.classList.add("displayNone")
1707 previewTools.classList.remove("displayNone")
1708 document.querySelector("div.display-settings").prepend(undoButton)
1709
1710 const countBeforeBanner = localStorage.getItem("countBeforeBanner") || 1
1711 if (countBeforeBanner <= 0) {
1712 supportBanner.classList.remove("displayNone")
1713 }
1714 }
1715}
1716
1717function removeTask(taskToRemove) {
1718 undoableRemove(taskToRemove)

Callers 4

undoRemoveFunction · 0.85
makeImageFunction · 0.85
removeTaskFunction · 0.85
main.jsFile · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected