-
Notifications
You must be signed in to change notification settings - Fork 63
feat(select account) - use ngrx for selected account #607
Conversation
# Conflicts: # src/app/shared/shared.module.ts # src/app/spare-drive/spare-drive-filter/spare-drive-filter.component.ts # src/app/vm/vm-filter/vm-filter.component.ts
# Conflicts: # src/app/shared/shared.module.ts
# Conflicts: # src/app/vm/vm-creation/vm-creation.component.ts
# Conflicts: # src/app/account/accounts.module.ts # src/app/accounts/redux/accounts.effects.ts
# Conflicts: # src/app/account/account-page/account-page.component.html # src/app/account/account-sidebar/account-details/account-details.component.ts # src/app/account/account-sidebar/account-limits/account-limits.component.ts # src/app/account/account-sidebar/account-sidebar.component.html # src/app/account/account-sidebar/account-statistic/account-statistics.component.ts
@@ -18,11 +17,8 @@ export class ResourceCountService extends BaseBackendCachedService<ResourceCount | |||
} | |||
|
|||
public updateResourceCount( | |||
account: Account | |||
params: any |
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.
Add typecheck here
state => state.loading | ||
); | ||
|
||
export const configurations = createSelector( |
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.
do we need this selector?
state => state.loading | ||
); | ||
|
||
export const domians = createSelector( |
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.
do we need this selector
state => state.loading | ||
); | ||
|
||
export const resourceCounts = createSelector( |
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.
do we need this selector?
state => state.loading | ||
); | ||
|
||
export const resourceLimits = createSelector( |
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.
do we need this selector?
state => state.loading | ||
); | ||
|
||
export const roles = createSelector( |
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.
do we need this selector
# Conflicts: # src/app/account/account-container/account.container.ts
} | ||
|
||
public onConfigurationEdit(configuration) { | ||
this.account$ |
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.
Please, get rid of this and the following subscribes
(onAccountChanged)="onAccountChange($event)" | ||
></cs-account-sidebar>` | ||
}) | ||
export class AccountSidebarContainerComponent extends WithUnsubscribe() implements OnInit { |
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 unsubscribe
<div *ngFor="let limit of limits" class="height-container"> | ||
|
||
|
||
<div *ngIf="!isEdit"> |
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.
fix indentation
# Conflicts: # src/app/reducers/domains/redux/domains.reducers.ts # src/app/ssh-keys/containers/ssh-key-list.container.ts
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.
UI should not make calls if there are no permissions to do that. please check the functionality for non-admin accounts
#597