Web:Client:Store:ProfileActionsStore: Updated key menu item

This commit is contained in:
Akmal Isomadinov 2022-11-11 12:42:09 +05:00
parent b3f3a4e4e0
commit a05ee0bfe0

View File

@ -135,7 +135,7 @@ class ProfileActionsStore {
const settings = isAdmin
? {
key: "SettingsBtn",
key: "user-menu-settings",
icon: "/static/images/catalog.settings.react.svg",
label: t("Common:Settings"),
onClick: () => this.onSettingsClick(settingsUrl),
@ -152,7 +152,7 @@ class ProfileActionsStore {
!isMobile
) {
hotkeys = {
key: "HotkeysBtn",
key: "user-menu-hotkeys",
icon: "/static/images/hotkeys.react.svg",
label: t("Common:Hotkeys"),
onClick: this.onHotkeysClick,
@ -161,39 +161,39 @@ class ProfileActionsStore {
// }
const actions = [
{
key: "ProfileBtn",
key: "user-menu-profile",
icon: "/static/images/profile.react.svg",
label: t("Common:Profile"),
onClick: this.onProfileClick,
},
settings,
isAdmin && {
key: "PaymentsBtn",
key: "user-menu-payments",
icon: "/static/images/payments.react.svg",
label: t("Common:PaymentsTitle"),
onClick: this.onPaymentsClick,
},
{
key: "HelpCenterBtn",
key: "user-menu-help-center",
icon: "/static/images/help.center.react.svg",
label: t("Common:HelpCenter"),
onClick: this.onHelpCenterClick,
},
{
key: "SupportBtn",
key: "user-menu-support",
icon: "/static/images/support.react.svg",
label: t("Common:FeedbackAndSupport"),
onClick: this.onSupportClick,
},
{
key: "VideoBtn",
key: "user-menu-video",
icon: "/static/images/video.guides.react.svg",
label: t("Common:VideoGuides"),
onClick: this.onVideoGuidesClick,
},
hotkeys,
{
key: "AboutBtn",
key: "user-menu-about",
icon: "/static/images/info.outline.react.svg",
label: t("Common:AboutCompanyTitle"),
onClick: this.onAboutClick,
@ -203,7 +203,7 @@ class ProfileActionsStore {
key: "separator",
},
{
key: "LogoutBtn",
key: "user-menu-logout",
icon: "/static/images/logout.react.svg",
label: t("Common:LogoutButton"),
onClick: this.onLogoutClick,
@ -213,7 +213,7 @@ class ProfileActionsStore {
if (debugInfo) {
actions.splice(3, 0, {
key: "DebugBtn",
key: "user-menu-debug",
icon: "/static/images/info.outline.react.svg",
label: "Debug Info",
onClick: this.onDebugClick,