MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / showElement

Function showElement

ts/base_ts.ts:69–91  ·  view source on GitHub ↗
(elmID, type)

Source from the content-addressed store, hash-verified

67}
68
69function showElement(elmID, type) {
70 if (elmID == "popup-custom" || elmID == "popup") {
71 switch (type) {
72 case true:
73 popupModal.show()
74 break;
75 case false:
76 popupModal.hide()
77 break;
78 }
79 }
80
81 if (elmID == "loading") {
82 switch (type) {
83 case true:
84 loadingModal.show()
85 break;
86 case false:
87 loadingModal.hide()
88 break;
89 }
90 }
91}
92
93function showToast(title: string, message: string, type: string = 'info') {
94 const toast = document.getElementById('toast');

Callers 4

showPopUpElementFunction · 0.70
initWebSocketFunction · 0.70
savePopupDataFunction · 0.70
donePopupDataFunction · 0.70

Calls 1

showMethod · 0.45

Tested by

no test coverage detected