Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix: change condition for slider in vm creation (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyRoach committed Oct 10, 2018
1 parent 35c4db1 commit 8ac96df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/vm/vm-creation/vm-creation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ export class VmCreationComponent {
}

public showResizeSlider(): boolean {
return this.vmCreationState.template
&& !isTemplate(this.vmCreationState.template)
&& this.isCustomizedDiskOffering()
&& !!this.vmCreationState.rootDiskMinSize;
const template = isTemplate(this.vmCreationState.template);
return template || (!template && this.isCustomizedDiskOffering());
}

public rootDiskSizeLimit(): number {
Expand Down

0 comments on commit 8ac96df

Please sign in to comment.