MCPcopy Create free account
hub / github.com/json-editor/json-editor / askConfirmation

Method askConfirmation

src/editors/array.js:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5export class ArrayEditor extends AbstractEditor {
6 askConfirmation () {
7 if (this.jsoneditor.options.prompt_before_delete === true) {
8 if (window.confirm(this.translate('button_delete_node_warning')) === false) {
9 return false
10 }
11 }
12 return true
13 }
14
15 register () {
16 super.register()

Calls

no outgoing calls

Tested by

no test coverage detected