File tree Expand file tree Collapse file tree
plugin/plugins/galgame_plugin/static Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 < meta http-equiv ="Pragma " content ="no-cache ">
99 < meta http-equiv ="Expires " content ="0 ">
1010 < title data-i18n ="ui.app.title "> Galgame 游玩助手</ title >
11- < link rel ="stylesheet " href ="./style.css?v=20260502-ocr-window-collapse ">
11+ < link rel ="stylesheet " href ="./style.css?v=20260505-ui-i18n ">
1212</ head >
1313< body >
1414 < div class ="page-shell ">
@@ -409,7 +409,6 @@ <h3 data-i18n="ui.install.rapidocr.card_title">RapidOCR</h3>
409409 </ div >
410410 < p id ="rapidocrCardDesc " class ="install-card-desc " data-i18n ="ui.install.rapidocr.body "> OCR 文字识别主后端</ p >
411411 < p id ="rapidocrCardMeta " class ="install-card-meta "> </ p >
412- < div id ="rapidocrCardActions " class ="install-card-actions "> </ div >
413412 < div id ="rapidocrInstallCard " class ="install-task-card " hidden >
414413 < div class ="install-task-head ">
415414 < p id ="rapidocrInstallStatusText " class ="install-task-status " data-i18n ="ui.install.waiting_task "> 等待安装任务</ p >
@@ -421,6 +420,7 @@ <h3 data-i18n="ui.install.rapidocr.card_title">RapidOCR</h3>
421420 < p id ="rapidocrInstallMessage " class ="result-note "> </ p >
422421 < p id ="rapidocrInstallDetail " class ="result-note "> </ p >
423422 </ div >
423+ < div id ="rapidocrCardActions " class ="install-card-actions "> </ div >
424424 </ div >
425425 </ div >
426426
Original file line number Diff line number Diff line change @@ -3377,10 +3377,16 @@ function renderInstallTaskState(kind) {
33773377 messageText . textContent = state . message || '' ;
33783378 detailText . textContent = details . join ( ' · ' ) ;
33793379 progressBar . style . width = `${ percent } %` ;
3380+ const rapidocr = latestStatus && latestStatus . rapidocr ? latestStatus . rapidocr : { } ;
3381+ const rapidocrModelsStillMissing = kind === 'rapidocr_models' && rapidocr . detail === 'missing_model_files' ;
33803382 if ( state . status === 'completed' ) {
33813383 if ( button ) {
3382- button . hidden = true ;
3383- button . disabled = true ;
3384+ const terminalCompleted = ! rapidocrModelsStillMissing ;
3385+ button . hidden = terminalCompleted ;
3386+ button . disabled = terminalCompleted ;
3387+ if ( rapidocrModelsStillMissing ) {
3388+ button . textContent = getInstallConfig ( kind ) . retryText ;
3389+ }
33843390 }
33853391 } else if ( state . status === 'failed' ) {
33863392 if ( button ) {
You can’t perform that action at this time.
0 commit comments