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

Commit

Permalink
fix(resource-limits-plugin): fix changes detection for request resour…
Browse files Browse the repository at this point in the history
…ces form (#1608)
  • Loading branch information
dron8552 committed Feb 26, 2019
1 parent b955f70 commit 15bcd4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { getModifiedLimits } from '../redux/selectors/modified-limits.selector';
})
export class RequestResourcesContainerComponent implements OnInit {
readonly resourceQuotas$ = this.store.pipe(select(fromUserForm.getUserResourceQuotas));
readonly resourceLimits$ = this.store.pipe(select(fromUserForm.getUserResourceLimits));
readonly resourceLimits$ = this.store.pipe(select(fromUserForm.getUserResourceLimitsForForm));
readonly failedToLoadQuotas$ = this.store.pipe(select(fromResourceQuotas.isErrorState));

readonly noResourceAvailableForChange$ = this.resourceQuotas$.pipe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export const getUserResourceQuotas = createSelector(
);

export const getUserResourceLimits = createSelector(
getResourceQuotasUserFormState,
state => state.limits,
);

export const getUserResourceLimitsForForm = createSelector(
getResourceQuotasUserFormState,
state =>
reduce(
Expand Down

0 comments on commit 15bcd4d

Please sign in to comment.