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

feat(select account) - use ngrx for selected account #607

Merged
merged 60 commits into from
Oct 27, 2017

Conversation

ksendart
Copy link
Contributor

# 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
@ksendart ksendart requested a review from zolotyx October 18, 2017 05:35
@@ -18,11 +17,8 @@ export class ResourceCountService extends BaseBackendCachedService<ResourceCount
}

public updateResourceCount(
account: Account
params: any
Copy link
Contributor

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(
Copy link
Contributor

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(
Copy link
Contributor

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(
Copy link
Contributor

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(
Copy link
Contributor

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(
Copy link
Contributor

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

}

public onConfigurationEdit(configuration) {
this.account$
Copy link
Contributor

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 {
Copy link
Contributor

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">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix indentation

ksendart and others added 3 commits October 23, 2017 14:35
# Conflicts:
#	src/app/reducers/domains/redux/domains.reducers.ts
#	src/app/ssh-keys/containers/ssh-key-list.container.ts
Copy link
Contributor

@zolotyx zolotyx left a 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

@ksendart ksendart merged commit 5d81359 into master Oct 27, 2017
@ksendart ksendart deleted the 597-select-account branch October 27, 2017 03:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants