Skip to content

Commit

Permalink
rename navbar append_item method to register
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 27, 2024
1 parent 42d1c7d commit 97b3490
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions edc_pharmacy_dashboard/navbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@
navbar = Navbar(name="pharmacy_dashboard")


navbar.append_item(
navbar.register(
NavbarItem(
name="prescribe",
title="prescribe",
label="Prescribe",
glyphicon="glyphicon-edit",
fa_icon="fa-pencil",
no_url_namespace=no_url_namespace,
codename="edc_navbar.nav_pharmacy_prescribe",
url_name="edc_pharmacy_dashboard:prescribe_listboard_url",
)
)

navbar.append_item(
navbar.register(
NavbarItem(
name="dispense",
title="dispense",
label="Dispense",
glyphicon="glyphicon-share",
fa_icon="fa-notes-medical",
no_url_namespace=no_url_namespace,
codename="edc_navbar.nav_pharmacy_dispense",
url_name="edc_pharmacy_dashboard:dispense_listboard_url",
)
)

navbar.append_item(
navbar.register(
NavbarItem(
name="pharmacy",
fa_icon="fa-medkit",
Expand Down

0 comments on commit 97b3490

Please sign in to comment.