(elmID, type)
| 67 | } |
| 68 | |
| 69 | function 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 | |
| 93 | function showToast(title: string, message: string, type: string = 'info') { |
| 94 | const toast = document.getElementById('toast'); |
no test coverage detected