MCPcopy
hub / github.com/gmattie/Data-Pixels / initFileTypeErrorDialog

Function initFileTypeErrorDialog

resources/source/js/application/popups.js:127–135  ·  view source on GitHub ↗

* @description Initializes and displays the "File Type Error" modal dialog window with specific content and user response options. * @private * @function *

()

Source from the content-addressed store, hash-verified

125 *
126 */
127function initFileTypeErrorDialog() {
128
129 const image = createImage(C.ImageSource.ERROR, C.CSSClass.DIALOG_IMAGE);
130 const text = createText(C.Label.DIALOG_FILE_TYPE);
131 const content = createContent(C.CSSClass.DIALOG_CONTENT, image, text);
132
133 M.FileTypeErrorDialog = new Dialog(content, Dialog.Type.ALERT);
134 M.FileTypeErrorDialog.display();
135}
136
137/**
138 * @description Initializes and displays the "Image Size Error" modal dialog window with specific content and user response options.

Callers 1

displayFunction · 0.85

Calls 4

createImageFunction · 0.85
createTextFunction · 0.85
createContentFunction · 0.85
displayMethod · 0.80

Tested by

no test coverage detected