mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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