MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / showElement

Function showElement

html/js/base_ts.js:56–77  ·  view source on GitHub ↗
(elmID, type)

Source from the content-addressed store, hash-verified

54 return;
55}
56function showElement(elmID, type) {
57 if (elmID == "popup-custom" || elmID == "popup") {
58 switch (type) {
59 case true:
60 popupModal.show();
61 break;
62 case false:
63 popupModal.hide();
64 break;
65 }
66 }
67 if (elmID == "loading") {
68 switch (type) {
69 case true:
70 loadingModal.show();
71 break;
72 case false:
73 loadingModal.hide();
74 break;
75 }
76 }
77}
78function showToast(title, message, type = 'info') {
79 const toast = document.getElementById('toast');
80 const toastBody = document.getElementById('toast-body');

Callers 1

showPopUpElementFunction · 0.70

Calls 1

showMethod · 0.45

Tested by

no test coverage detected