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:
parent
52200d7f9a
commit
2a1a53525f
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user