mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	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>
This commit is contained in:
		| @@ -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 = ['${', '}']; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user