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

fix(sg-actions): Remove delete button for system firewall templates #754

Merged
merged 1 commit into from
Dec 11, 2017

Conversation

HeyRoach
Copy link
Contributor

No description provided.

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.

Please, rename pull request name to reflect the changes

@@ -17,7 +17,7 @@ const SecurityGroupShowRulesAction = {
name: 'SECURITY_GROUP_PAGE.ACTION.RULES',
command: SecurityGroupActionType.View,
icon: 'visibility',
canActivate: (securityGroup: SecurityGroup) => true
canActivate: (securityGroup: SecurityGroup) => securityGroup.type !== SecurityGroupType.PredefinedTemplate
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe that the changes should be done 7 lines above. 😕

Copy link
Contributor

Choose a reason for hiding this comment

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

should we use canActivate or isHidden?

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.

should

@@ -17,7 +17,7 @@ const SecurityGroupShowRulesAction = {
name: 'SECURITY_GROUP_PAGE.ACTION.RULES',
command: SecurityGroupActionType.View,
icon: 'visibility',
canActivate: (securityGroup: SecurityGroup) => true
canActivate: (securityGroup: SecurityGroup) => securityGroup.type !== SecurityGroupType.PredefinedTemplate
Copy link
Contributor

Choose a reason for hiding this comment

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

should we use canActivate or isHidden?

@HeyRoach HeyRoach changed the title fix(sg-actions): Delete button for system firewall templates fix(sg-actions): Remove delete button for system firewall templates Dec 11, 2017
@HeyRoach HeyRoach merged commit ca45c7b into master Dec 11, 2017
@HeyRoach HeyRoach deleted the 747-sg-delete-button branch December 11, 2017 08:51
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.

None yet

2 participants