1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Simplify code

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-07-22 08:36:36 +03:00
parent 52200d7f9a
commit 2a1a53525f
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -103,6 +103,8 @@ interface Dependencies {
}
export class ReleaseDetailsModel {
id = `${this.dependencies.targetRelease.namespace}/${this.dependencies.targetRelease.name}`;
constructor(private dependencies: Dependencies) {}
private detailedRelease = observable.box<DetailedHelmRelease | undefined>();
@ -269,12 +271,6 @@ export class ReleaseDetailsModel {
this.close();
};
@computed get id() {
const { name, namespace } = this.dependencies.targetRelease;
return `${namespace}/${name}`;
}
}
export interface MinimalResourceGroup {