-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to pass in boolean to noDirtyCheck directive (#8638)
* Adjust noDirtyCheck directive to accept a parameter to enable/disable dirty check * Update dirty property * Use Utilities.noop and add description * Set default value from controller * Check for truthly value * Use Object.toBoolean * Revert setting $pristine and $dirty for now * Handle default values in dirty check attributes * Add check on presence of disableDirtyCheck atribute * Check for truthy value otherwise it should be default return false and work as no-dirty-check without value * update test conditions for vamue of no-dirty-check and disable-dirty-check * Remove whitespace * update check Co-authored-by: Kenn Jacobsen <[email protected]> Co-authored-by: Michael <[email protected]>
- Loading branch information
1 parent
20eda44
commit 7757c4d
Showing
5 changed files
with
45 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 11 additions & 23 deletions
34
src/Umbraco.Web.UI.Client/src/views/components/forms/umb-checkbox.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 11 additions & 23 deletions
34
src/Umbraco.Web.UI.Client/src/views/components/forms/umb-radiobutton.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters