fix(AppNavBar): make navbar buttons render correctly again
We've introduced a regression in
9f633f0fcc
where model data for navbar buttons are malformed, which results in them being rendered
incorrectly (as letter identicons, instead of icon buttons)
The reason this was happening was because the model data for the
navbar buttons was not properly initialized due to a mixed usage of
positioned and named arguments of the `initItem()` APIs in `SectionItem`
models.
Fixes #5949
This commit is contained in:
parent
583f947eb6
commit
b9c65be808
|
@ -292,7 +292,7 @@ method load*[T](
|
||||||
amISectionAdmin = false,
|
amISectionAdmin = false,
|
||||||
description = "",
|
description = "",
|
||||||
image = "",
|
image = "",
|
||||||
conf.COMMUNITIESPORTAL_SECTION_ICON,
|
icon = conf.COMMUNITIESPORTAL_SECTION_ICON,
|
||||||
color = "",
|
color = "",
|
||||||
hasNotification = false,
|
hasNotification = false,
|
||||||
notificationsCount = 0,
|
notificationsCount = 0,
|
||||||
|
@ -307,7 +307,7 @@ method load*[T](
|
||||||
amISectionAdmin = false,
|
amISectionAdmin = false,
|
||||||
description = "",
|
description = "",
|
||||||
image = "",
|
image = "",
|
||||||
conf.WALLET_SECTION_ICON,
|
icon = conf.WALLET_SECTION_ICON,
|
||||||
color = "",
|
color = "",
|
||||||
hasNotification = false,
|
hasNotification = false,
|
||||||
notificationsCount = 0,
|
notificationsCount = 0,
|
||||||
|
@ -322,7 +322,7 @@ method load*[T](
|
||||||
amISectionAdmin = false,
|
amISectionAdmin = false,
|
||||||
description = "",
|
description = "",
|
||||||
image = "",
|
image = "",
|
||||||
conf.BROWSER_SECTION_ICON,
|
icon = conf.BROWSER_SECTION_ICON,
|
||||||
color = "",
|
color = "",
|
||||||
hasNotification = false,
|
hasNotification = false,
|
||||||
notificationsCount = 0,
|
notificationsCount = 0,
|
||||||
|
@ -338,7 +338,7 @@ method load*[T](
|
||||||
amISectionAdmin = false,
|
amISectionAdmin = false,
|
||||||
description = "",
|
description = "",
|
||||||
image = "",
|
image = "",
|
||||||
conf.NODEMANAGEMENT_SECTION_ICON,
|
icon = conf.NODEMANAGEMENT_SECTION_ICON,
|
||||||
color = "",
|
color = "",
|
||||||
hasNotification = false,
|
hasNotification = false,
|
||||||
notificationsCount = 0,
|
notificationsCount = 0,
|
||||||
|
@ -354,7 +354,7 @@ method load*[T](
|
||||||
amISectionAdmin = false,
|
amISectionAdmin = false,
|
||||||
description = "",
|
description = "",
|
||||||
image = "",
|
image = "",
|
||||||
conf.SETTINGS_SECTION_ICON,
|
icon = conf.SETTINGS_SECTION_ICON,
|
||||||
color = "",
|
color = "",
|
||||||
hasNotification = self.calculateProfileSectionHasNotification(),
|
hasNotification = self.calculateProfileSectionHasNotification(),
|
||||||
notificationsCount = 0,
|
notificationsCount = 0,
|
||||||
|
|
Loading…
Reference in New Issue