Commit b17d4b40 authored by wudizhanche1000's avatar wudizhanche1000

校验失败提示

parent f9c631e9
......@@ -77,7 +77,7 @@
</div>
<h2 i18n>本地文件</h2>
<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>
</div>
......
......@@ -171,6 +171,7 @@ export class AppDetailComponent implements OnInit {
await this.appsService.update(mod, true);
}
} catch (e) {
new Notification(app.name, {body: "校验失败"});
console.log(e);
}
}
......
......@@ -496,6 +496,7 @@ export class AppsService {
} catch (e) {
Logger.error("Update Failed: ", e);
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