-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(new-vm): show resource set limits #1563
feat(new-vm): show resource set limits #1563
Conversation
@@ -225,6 +225,38 @@ $select-input-height: 40px; // Bootstrap input height | |||
opacity: 0.6; | |||
} | |||
|
|||
// LIMITS STYLE ================================================================ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move usage and limits in their own CSS file and import it.
@@ -143,27 +146,19 @@ export default class NewVm extends BaseComponent { | |||
this.state = { state: {} } | |||
} | |||
|
|||
componentDidMount () { | |||
componentWillMount () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this change.
} | ||
_getResolvedResourceSet = createSelector( | ||
this._getResourceSet, | ||
resourceSet => resolveResourceSet(resourceSet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can simplify this line.
@@ -314,7 +307,9 @@ export default class NewVm extends BaseComponent { | |||
|
|||
const storeState = store.getState() | |||
const _isInResourceSet = this._getIsInResourceSet() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this _
prefix.
return ( | ||
CPUs <= availableCpus && | ||
memory <= availableMemory && | ||
sumBy(VDIs, 'size') <= availableDisk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should handle when some limits are not defined.
df15f4f
to
fa32f5f
Compare
Fixes #1541