Commit Graph

12 Commits

Author SHA1 Message Date
Julian Lam
a716a5529c feat: more discrete commit-on-save instead of commit-on-change w/ confirm modals (#8541)
* feat: privileges save button, #8537, WIP

* fix: disable firefox autocomplete on privilege form fields

* feat: closes #8537 privilege changes commit on save

- new language strings for confirmation and success modals/toasts
- indeterminate privilege handling (/cc @psychobunny)
- added new discard button
- both discard and save buttons now have confirmation dialogs

* fix(tests): remove duplicate template helper test

* fix(tests): broken template helper test

* feat: confirm dialogs for all privilege copy actions

Also, ability to add user to a privilege table without needing
to refresh the privilege table.

* feat: group row addition w/o table refresh

breaking: helpers.getUserPrivileges and helpers.getGroupPrivileges
no longer make socket calls to the following hooks:

- filter:privileges.list, filter:privileges.admin.list,
  filter:privileges.global.list, filter:privileges.groups.list,
  filter:privileges.admin.groups.list,
  filter:privileges.gloval.groups.list

The filters are still called, but done before the helper method
is called, and the results are passed in instead. This change
should only affect you if you directly call the helper methods,
otherwise the change is transparent.

* fix: stale ajaxify data on privilege category switch

* fix: implicit privileges not showing for user privs

* fix: groups, not group, also fix tests

* fix(tests): again

* fix: wrong tpl rendered when adding group to global priv table
2020-08-03 20:42:45 -04:00
Barış Soner Uşaklı
b990312088 fix: test 2019-04-29 10:59:52 -04:00
Julian Lam
d3a10628e7 fix: broken 50% border radius on emails, failing tests 2019-02-22 12:01:18 -05:00
Julian Lam
3a7f1c192b fix: failing tests from revamped-emails branch 2019-02-21 12:55:09 -05:00
Barış Soner Uşaklı
c72da5595a fix: #6806
3 new global privileges
view:users
view:tags
view:groups
2019-02-05 12:08:18 -05:00
Barış Soner Uşaklı
7eab9f6ab0 add missing ; 2018-01-08 13:53:05 -05:00
Barış Soner Uşaklı
fdb221c106 fix helper test 2018-01-08 13:41:20 -05:00
Julian Lam
78c83f2561 fixing tests 2017-11-30 12:53:49 -05:00
barisusakli
0e7740af32 fix tests for subfolder installs 2017-02-25 16:04:04 +03:00
barisusakli
347761173a helpers tests 2017-02-25 15:10:23 +03:00
Julian Lam
995f8296a4 linting 2017-02-24 12:03:47 -05:00
barisusakli
048eb8a320 some helper tests 2017-02-24 18:06:23 +03:00