diff options
author | zeripath <art27@cantab.net> | 2021-06-16 23:02:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 18:02:24 -0400 |
commit | 6d69df28047bf7fd3e307391b484a93432615b90 (patch) | |
tree | 8a24ce0727f86625c4f469b6744f6f3f2fa27c86 /web_src/js/index.js | |
parent | 047c39e91bb39d4f31278d8c4082187894ea8263 (diff) | |
download | gitea-6d69df28047bf7fd3e307391b484a93432615b90.tar.gz gitea-6d69df28047bf7fd3e307391b484a93432615b90.zip |
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>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 29203568a5..c00b3aaeb0 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -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); |