mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove dead code
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
1 parent
f6d1909d4d
commit
dde628b027
2 files changed
-14
No files matched your search
@@ -34,7 +34,6 @@ interface Dependencies {
|
||||
}
|
||||
|
||||
const NonInjectedReleaseDetailsContent = observer(({ model }: Dependencies & ReleaseDetailsContentProps) => {
|
||||
const isLoading = model.isLoading.get();
|
||||
const failedToLoad = model.failedToLoad.get();
|
||||
|
||||
if (failedToLoad) {
|
||||
@@ -43,9 +42,6 @@ const NonInjectedReleaseDetailsContent = observer(({ model }: Dependencies & Rel
|
||||
|
||||
|
||||
return (
|
||||
(isLoading ? (
|
||||
<Spinner center data-testid="helm-release-detail-content-spinner" />
|
||||
) : (
|
||||
<div>
|
||||
<DrawerItem name="Chart" className="chart">
|
||||
<div className="flex gaps align-center">
|
||||
@@ -105,7 +101,6 @@ const NonInjectedReleaseDetailsContent = observer(({ model }: Dependencies & Rel
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
))
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
-9
@@ -103,7 +103,6 @@ export class ReleaseDetailsModel {
|
||||
|
||||
private detailedRelease = observable.box<DetailedHelmRelease | undefined>();
|
||||
|
||||
readonly isLoading = observable.box(false);
|
||||
readonly failedToLoad = observable.box(false);
|
||||
|
||||
readonly configuration: ConfigurationInput = {
|
||||
@@ -171,10 +170,6 @@ export class ReleaseDetailsModel {
|
||||
};
|
||||
|
||||
load = async () => {
|
||||
runInAction(() => {
|
||||
this.isLoading.set(true);
|
||||
});
|
||||
|
||||
const { name, namespace } = this.dependencies.targetRelease;
|
||||
|
||||
const result = await this.dependencies.callForHelmRelease(
|
||||
@@ -195,10 +190,6 @@ export class ReleaseDetailsModel {
|
||||
});
|
||||
|
||||
await this.loadConfiguration();
|
||||
|
||||
runInAction(() => {
|
||||
this.isLoading.set(false);
|
||||
});
|
||||
};
|
||||
|
||||
private loadConfiguration = async () => {
|
||||
|
||||
Reference in new issue
Block a user