* disableRules * Disables given validation rules, * then reruns the validation so that the user sees something happen in the UI * @param {Array } ruleIDs - Complete set of rules that should be disabled
(ruleIDs = [])
| 492 | * @param {Array<string>} ruleIDs - Complete set of rules that should be disabled |
| 493 | */ |
| 494 | disableRules(ruleIDs = []) { |
| 495 | this._disabledRuleIDs = new Set(ruleIDs); |
| 496 | |
| 497 | const storage = this.context.systems.storage; |
| 498 | storage.setItem('validate-disabledRules', [...this._disabledRuleIDs].join(',')); |
| 499 | this.validateAsync(); |
| 500 | } |
| 501 | |
| 502 | |
| 503 | /** |
no test coverage detected