fix: fix action menu in the admin

This commit is contained in:
tdurieux
2023-02-22 09:21:14 +01:00
parent b6049c4ed2
commit 1d4eb7a1b0
4 changed files with 138 additions and 10 deletions

View File

@@ -196,7 +196,7 @@ export default class Repository {
const newCommit = branches.filter((f) => f.name == branch.name)[0]
?.commit;
if (branch.commit == newCommit && this.status == "ready") {
console.log(`${this._model.repoId} is up to date`);
console.log(`[UPDATE] ${this._model.repoId} is up to date`);
return;
}
this._model.source.commit = newCommit;
@@ -370,7 +370,10 @@ export default class Repository {
}
get originalCachePath() {
return join(this._model.repoId, "original") + (process.platform === "win32" ? "\\" : "/");
return (
join(this._model.repoId, "original") +
(process.platform === "win32" ? "\\" : "/")
);
}
get status() {