MCPcopy Create free account
hub / github.com/chhoumann/quickadd / addCloseFooter

Method addCloseFooter

src/gui/UpdateModal/UpdateModal.ts:237–243  ·  view source on GitHub ↗

* A self-owned dismiss control. On phones the system close (X) sits in the top * safe-area zone (status bar / Dynamic Island) where it can be untappable, and * this modal has no other exit (no Esc key, no backdrop to tap) — so it must * always offer a reachable Close. The footer follows the (i

()

Source from the content-addressed store, hash-verified

235 * home-indicator inset on mobile (#635).
236 */
237 private addCloseFooter(): void {
238 const footer = this.contentEl.createDiv("quickadd-update-modal-footer");
239 new ButtonComponent(footer)
240 .setButtonText("Done")
241 .setCta()
242 .onClick(() => this.close());
243 }
244
245 onClose() {
246 const { contentEl } = this;

Callers 2

onOpenMethod · 0.95
displayMethod · 0.95

Calls 4

closeMethod · 0.65
onClickMethod · 0.45
setCtaMethod · 0.45
setButtonTextMethod · 0.45

Tested by

no test coverage detected