Web:Client:Store:AccountsContextOptionsStore Added ids

This commit is contained in:
Akmal Isomadinov 2022-11-28 17:34:03 +05:00
parent 05ba07585a
commit 8f17a5c86b

View File

@ -39,6 +39,7 @@ class AccountsContextOptionsStore {
case "profile": case "profile":
return { return {
id: "info-profile",
key: option, key: option,
icon: "/static/images/profile.react.svg", icon: "/static/images/profile.react.svg",
label: t("Common:Profile"), label: t("Common:Profile"),
@ -47,6 +48,7 @@ class AccountsContextOptionsStore {
case "change-name": case "change-name":
return { return {
id: "info-change-name",
key: option, key: option,
icon: "images/pencil.react.svg", icon: "images/pencil.react.svg",
label: t("PeopleTranslations:NameChangeButton"), label: t("PeopleTranslations:NameChangeButton"),
@ -54,6 +56,7 @@ class AccountsContextOptionsStore {
}; };
case "change-email": case "change-email":
return { return {
id: "info-change-email",
key: option, key: option,
icon: "images/change.mail.react.svg", icon: "images/change.mail.react.svg",
label: t("PeopleTranslations:EmailChangeButton"), label: t("PeopleTranslations:EmailChangeButton"),
@ -61,6 +64,7 @@ class AccountsContextOptionsStore {
}; };
case "change-password": case "change-password":
return { return {
id: "info-change-password",
key: option, key: option,
icon: "images/change.security.react.svg", icon: "images/change.security.react.svg",
label: t("PeopleTranslations:PasswordChangeButton"), label: t("PeopleTranslations:PasswordChangeButton"),
@ -68,6 +72,7 @@ class AccountsContextOptionsStore {
}; };
case "change-owner": case "change-owner":
return { return {
id: "info-change-owner",
key: option, key: option,
icon: "/static/images/refresh.react.svg", icon: "/static/images/refresh.react.svg",
label: t("Translations:OwnerChange"), label: t("Translations:OwnerChange"),
@ -76,6 +81,7 @@ class AccountsContextOptionsStore {
case "enable": case "enable":
return { return {
id: "info-enable",
key: option, key: option,
icon: "images/enable.react.svg", icon: "images/enable.react.svg",
label: t("PeopleTranslations:EnableUserButton"), label: t("PeopleTranslations:EnableUserButton"),
@ -83,6 +89,7 @@ class AccountsContextOptionsStore {
}; };
case "disable": case "disable":
return { return {
id: "info-disable",
key: option, key: option,
icon: "images/remove.react.svg", icon: "images/remove.react.svg",
label: t("PeopleTranslations:DisableUserButton"), label: t("PeopleTranslations:DisableUserButton"),
@ -91,6 +98,7 @@ class AccountsContextOptionsStore {
case "reassign-data": case "reassign-data":
return { return {
id: "info-reassign-data",
key: option, key: option,
icon: "images/ressing_data.react.svg", icon: "images/ressing_data.react.svg",
label: t("PeopleTranslations:ReassignData"), label: t("PeopleTranslations:ReassignData"),
@ -98,6 +106,7 @@ class AccountsContextOptionsStore {
}; };
case "delete-personal-data": case "delete-personal-data":
return { return {
id: "info-delete-personal-data",
key: option, key: option,
icon: "images/del_data.react.svg", icon: "images/del_data.react.svg",
label: t("PeopleTranslations:RemoveData"), label: t("PeopleTranslations:RemoveData"),
@ -105,6 +114,7 @@ class AccountsContextOptionsStore {
}; };
case "delete-user": case "delete-user":
return { return {
id: "info-delete-user",
key: option, key: option,
icon: "images/trash.react.svg", icon: "images/trash.react.svg",
label: t("DeleteProfileEverDialog:DeleteUser"), label: t("DeleteProfileEverDialog:DeleteUser"),
@ -113,6 +123,7 @@ class AccountsContextOptionsStore {
case "details": case "details":
return { return {
id: "info-details",
key: option, key: option,
icon: "images/info.react.svg", icon: "images/info.react.svg",
label: t("Common:Info"), label: t("Common:Info"),
@ -121,6 +132,7 @@ class AccountsContextOptionsStore {
case "invite-again": case "invite-again":
return { return {
id: "info-invite-again",
key: option, key: option,
icon: "/static/images/invite.again.react.svg", icon: "/static/images/invite.again.react.svg",
label: t("LblInviteAgain"), label: t("LblInviteAgain"),
@ -128,6 +140,7 @@ class AccountsContextOptionsStore {
}; };
case "reset-auth": case "reset-auth":
return { return {
id: "info-reset-auth",
key: option, key: option,
icon: "images/restore.auth.react.svg", icon: "images/restore.auth.react.svg",
label: t("PeopleTranslations:ResetAuth"), label: t("PeopleTranslations:ResetAuth"),