diff --git a/src/common/types.ts b/src/common/types.ts index 44fd9fe5..b527912a 100644 --- a/src/common/types.ts +++ b/src/common/types.ts @@ -161,6 +161,7 @@ export interface IEntry { reposStatus?: { props: string; item: string; + lock?: object; }; } diff --git a/src/statusParser.ts b/src/statusParser.ts index 782963c2..e2072842 100644 --- a/src/statusParser.ts +++ b/src/statusParser.ts @@ -18,7 +18,7 @@ function processEntry( } const wcStatus: IWcStatus = { - locked: !!entry.wcStatus.wcLocked && entry.wcStatus.wcLocked === "true", + locked: !!entry.wcStatus.wcLocked && entry.wcStatus.wcLocked === "true" || !!(entry.reposStatus && entry.reposStatus.lock), switched: !!entry.wcStatus.switched && entry.wcStatus.switched === "true" };