Skip to content

Commit

Permalink
chore: refactor navigation actions, return only those with nested and…
Browse files Browse the repository at this point in the history
… ontap route
  • Loading branch information
ochom committed Sep 9, 2021
1 parent 41d4a21 commit a160a11
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions pkg/onboarding/domain/actions.go
Expand Up @@ -29,8 +29,9 @@ const (
// Has KYC and Covers
RequestsRoute = "/admin"

RoleViewRoute = "/viewCreatedRolesPage"
RoleCreationRoute = "/createRoleStepOne"
RoleViewRoute = "/viewCreatedRolesPage"
RoleCreationRoute = "/createRoleStepOne"
RoleAssignmentRoute = "/bewellUserIdentification"

EmployeeRegistrationRoute = "/employeeRegistration"
EmployeeIdentificationRoute = "/employeeIdentification"
Expand All @@ -47,6 +48,7 @@ const (
RoleNavActionTitle = "Role Management"
RoleViewActionTitle = "View Roles"
RoleCreationActionTitle = "Create Role"
RoleAssignActionTitle = "Assign Role"

PatientNavActionTitle = "Patients"
PatientNavActionDescription = "Patient Navigation action"
Expand Down Expand Up @@ -111,6 +113,7 @@ const (
RoleNavActionSequence
RoleCreationNavActionSequence
RoleViewingNavActionSequence
RoleAssignNavActionSequence

RequestsNavActionSequence

Expand Down Expand Up @@ -217,6 +220,16 @@ var (
HasParent: true,
SequenceNumber: RoleViewingNavActionSequence,
}

//RoleAssignNavAction a child of the RoleNavActions
RoleAssignNavAction = NavigationAction{
Group: RoleGroup,
Title: RoleAssignActionTitle,
OnTapRoute: RoleAssignmentRoute,
RequiredPermission: &profileutils.CanAssignRole,
HasParent: true,
SequenceNumber: RoleAssignNavActionSequence,
}
)

var (
Expand Down

0 comments on commit a160a11

Please sign in to comment.