Commit b17d4b40 authored by wudizhanche1000's avatar wudizhanche1000

校验失败提示

parent f9c631e9
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</div> </div>
<h2 i18n>本地文件</h2> <h2 i18n>本地文件</h2>
<button i18n (click)="appsService.browse(currentApp)" [disabled]="!appsService.allReady(currentApp)" type="button" class="btn btn-secondary">浏览本地文件</button> <button i18n (click)="appsService.browse(currentApp)" [disabled]="!appsService.allReady(currentApp)" type="button" class="btn btn-secondary">浏览本地文件</button>
<button i18n type="button" (click)="verifyFiles(currentApp)" class="btn btn-secondary">校验完整性</button> <button i18n type="button" (click)="verifyFiles(currentApp)" [disabled]="!appsService.allReady(currentApp)" class="btn btn-secondary">校验完整性</button>
<button i18n (click)="uninstall(currentApp)" [disabled]="!appsService.allReady(currentApp)" type="button" class="btn btn-secondary">卸载</button> <button i18n (click)="uninstall(currentApp)" [disabled]="!appsService.allReady(currentApp)" type="button" class="btn btn-secondary">卸载</button>
</div> </div>
......
...@@ -171,6 +171,7 @@ export class AppDetailComponent implements OnInit { ...@@ -171,6 +171,7 @@ export class AppDetailComponent implements OnInit {
await this.appsService.update(mod, true); await this.appsService.update(mod, true);
} }
} catch (e) { } catch (e) {
new Notification(app.name, {body: "校验失败"});
console.log(e); console.log(e);
} }
} }
......
...@@ -496,6 +496,7 @@ export class AppsService { ...@@ -496,6 +496,7 @@ export class AppsService {
} catch (e) { } catch (e) {
Logger.error("Update Failed: ", e); Logger.error("Update Failed: ", e);
app.status.status = "ready"; app.status.status = "ready";
throw e;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment