This commit is contained in:
Louis Lam
2023-11-10 18:16:52 +08:00
parent eb6db8b31e
commit a12c6dc033
10 changed files with 69 additions and 1005 deletions

View File

@@ -64,11 +64,7 @@ export class Stack {
}
get isManagedByDockge() : boolean {
if (this._configFilePath) {
return this._configFilePath.startsWith(this.server.stackDirFullPath) && fs.existsSync(this.path) && fs.statSync(this.path).isDirectory();
} else {
return false;
}
return fs.existsSync(this.path) && fs.statSync(this.path).isDirectory();
}
get status() : number {