fix: Show billing upgrade page if there is a mismatch in the user count (#11886)
Disable features/show billing upgrade for accounts with more users than the one in the license. --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"LIMIT_MESSAGES": {
|
||||
"CONVERSATION": "You have exceeded the conversation limit. Hacker plan allows only 500 conversations.",
|
||||
"INBOXES": "You have exceeded the inbox limit. Hacker plan only supports website live-chat. Additional inboxes like email, WhatsApp etc. require a paid plan.",
|
||||
"AGENTS": "You have exceeded the agent limit. Hacker plan allows only 2 agents.",
|
||||
"AGENTS": "You have exceeded the agent limit. Your plan only allows {allowedAgents} agents.",
|
||||
"NON_ADMIN": "Please contact your administrator to upgrade the plan and continue using all features."
|
||||
},
|
||||
"TITLE": "Account settings",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"LIMIT_MESSAGES": {
|
||||
"CONVERSATION": "You have exceeded the conversation limit. Hacker plan allows only 500 conversations.",
|
||||
"INBOXES": "You have exceeded the inbox limit. Hacker plan only supports website live-chat. Additional inboxes like email, WhatsApp etc. require a paid plan.",
|
||||
"AGENTS": "You have exceeded the agent limit. Hacker plan allows only 2 agents.",
|
||||
"AGENTS": "You have exceeded the agent limit. Your plan only allows {allowedAgents} agents.",
|
||||
"NON_ADMIN": "Please contact your administrator to upgrade the plan and continue using all features."
|
||||
},
|
||||
"TITLE": "Настройки аккаунта",
|
||||
|
||||
@@ -58,7 +58,9 @@ const limitExceededMessage = computed(() => {
|
||||
} else if (testLimit(nonWebInboxes)) {
|
||||
message = t('GENERAL_SETTINGS.LIMIT_MESSAGES.INBOXES');
|
||||
} else if (testLimit(agents)) {
|
||||
message = t('GENERAL_SETTINGS.LIMIT_MESSAGES.AGENTS');
|
||||
message = t('GENERAL_SETTINGS.LIMIT_MESSAGES.AGENTS', {
|
||||
allowedAgents: agents.allowed,
|
||||
});
|
||||
}
|
||||
|
||||
return message;
|
||||
|
||||
Reference in New Issue
Block a user