{"record":{"id":"a5a68c4b33aeeea4","repo":"octobercms/october","slug":"showconfirm-options-isdanger-must-be-boolean","errorCode":null,"errorMessage":"showConfirm options.isDanger must be Boolean","messagePattern":"showConfirm options\\.isDanger must be Boolean","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/modal/assets/js/classes/utils.js","lineNumber":111,"sourceCode":"                        }\n                    },\n                    onCloseClick(button) {\n                        buttonClicked = true;\n                        resolve(button);\n                    }\n                }\n            });\n\n            app.mount(wrapperEl);\n        });\n    }\n\n    showConfirm(title, text, options) {\n        options = this.#validateAlertOptions(options);\n        this.#validateBasicArguments(title, text);\n\n        if (options.isDanger !== undefined && typeof options.isDanger !== 'boolean') {\n            throw new Error('showConfirm options.isDanger must be Boolean');\n        }\n\n        return new Promise((resolve, reject) => {\n            // Create container element for Vue app\n            const wrapperEl = document.createElement('div');\n            document.body.appendChild(wrapperEl);\n\n            let buttonClicked = false;\n\n            // Create Vue 3 app\n            const app = oc.createVueApp({\n                data() {\n                    return {\n                        title: title,\n                        text: text,\n                        isDanger: options.isDanger,\n                        buttonText: options.buttonText,\n                        size: options.size || 'normal'","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/modal/assets/js/classes/utils.js#L93-L129","documentation":"Error \"showConfirm options.isDanger must be Boolean\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/vuecomponents/modal/assets/js/classes/utils.js:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}