mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Add Status Updates whilst Gitea migrations are occurring (#15076)
* Add migrating message Signed-off-by: Andrew Thornton <art27@cantab.net> * simplify messenger Signed-off-by: Andrew Thornton <art27@cantab.net> * make messenger an interface Signed-off-by: Andrew Thornton <art27@cantab.net> * rename Signed-off-by: Andrew Thornton <art27@cantab.net> * prepare for merge Signed-off-by: Andrew Thornton <art27@cantab.net> * as per tech Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
		| @@ -202,6 +202,7 @@ function initRepoStatusChecker() { | ||||
|   const migrating = $('#repo_migrating'); | ||||
|   $('#repo_migrating_failed').hide(); | ||||
|   $('#repo_migrating_failed_image').hide(); | ||||
|   $('#repo_migrating_progress_message').hide(); | ||||
|   if (migrating) { | ||||
|     const task = migrating.attr('task'); | ||||
|     if (typeof task === 'undefined') { | ||||
| @@ -223,9 +224,13 @@ function initRepoStatusChecker() { | ||||
|             $('#repo_migrating').hide(); | ||||
|             $('#repo_migrating_failed').show(); | ||||
|             $('#repo_migrating_failed_image').show(); | ||||
|             $('#repo_migrating_failed_error').text(xhr.responseJSON.err); | ||||
|             $('#repo_migrating_failed_error').text(xhr.responseJSON.message); | ||||
|             return; | ||||
|           } | ||||
|           if (xhr.responseJSON.message) { | ||||
|             $('#repo_migrating_progress_message').show(); | ||||
|             $('#repo_migrating_progress_message').text(xhr.responseJSON.message); | ||||
|           } | ||||
|           setTimeout(() => { | ||||
|             initRepoStatusChecker(); | ||||
|           }, 2000); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zeripath
					zeripath