diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-03-02 15:25:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 15:25:36 -0300 |
commit | 5e1438ba92fe5b4398ebf468e4ede21c7ef60409 (patch) | |
tree | 40096ee69a4ac5df46428a3cf1ae7ee3bee8078e /web_src | |
parent | b5ecc82d6e22b5701bfadc1ebc430b9c7fef0cc8 (diff) | |
download | gitea-5e1438ba92fe5b4398ebf468e4ede21c7ef60409.tar.gz gitea-5e1438ba92fe5b4398ebf468e4ede21c7ef60409.zip |
Admin page for managing user e-mail activation (#10557)
* Implement mail activation admin panel
* Add export comments
* Fix another export comment
* again...
* And again!
* Apply suggestions by @lunny
* Add UI for user activated emails
* Make new activation UI work
* Fix lint
* Prevent admin from self-deactivate; add modal
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/index.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index ec39a1c40c..fcf9701c3c 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2470,6 +2470,7 @@ $(document).ready(async () => { $('.delete-button').click(showDeletePopup); $('.add-all-button').click(showAddAllPopup); $('.link-action').click(linkAction); + $('.link-email-action').click(linkEmailAction); $('.delete-branch-button').click(showDeletePopup); @@ -2749,6 +2750,17 @@ function linkAction() { }); } +function linkEmailAction(e) { + const $this = $(this); + $('#form-uid').val($this.data('uid')); + $('#form-email').val($this.data('email')); + $('#form-primary').val($this.data('primary')); + $('#form-activate').val($this.data('activate')); + $('#form-uid').val($this.data('uid')); + $('#change-email-modal').modal('show'); + e.preventDefault(); +} + function initVueComponents() { const vueDelimeters = ['${', '}']; |