forked from Third-Culture-Software/bhima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(employees): restore locked employee filter
This commit fixes the "locked" employee feature on the employee configuration page for payroll which was lost during the migration to bh-checkbox-tree. To do this, I added a new feature to bh-checkbox-tree to allow disabling nodes based on their id, similar to how the checked-ids functionality works. In this case, disabled ids will retain the state they came in with, being ignore in the "setNodeValue()" function. Therefore, whatever the node came in with, it will leave with. Additionally, the icon disables the checkbox, makes the font italics, and puts a little lock icon in front of the text value. Thanks to @lomamech for pointing this out.
- Loading branch information
Showing
5 changed files
with
73 additions
and
11 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
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