From 4ab7b81b2c3ce61e6fa9008824a3763659f6a5d6 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Sun, 5 Dec 2021 00:22:23 +0530 Subject: [PATCH] fix(ui) - disabled popup text --- .../Assist/components/AssistActions/AssistActions.tsx | 2 +- frontend/app/components/Client/Roles/Roles.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index fd0505e7f..de9f037d7 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -101,7 +101,7 @@ function AssistActions({ toggleChatWindow, userId, calling, peerConnectionStatus { inCall ? 'End Call' : 'Call' } } - content={ `Call ${userId ? userId : 'User'}` } + content={ cannotCall ? "You don’t have the permissions to perform this action." : `Call ${userId ? userId : 'User'}` } size="tiny" inverted position="top right" diff --git a/frontend/app/components/Client/Roles/Roles.tsx b/frontend/app/components/Client/Roles/Roles.tsx index 65bbcfdfb..1b6069328 100644 --- a/frontend/app/components/Client/Roles/Roles.tsx +++ b/frontend/app/components/Client/Roles/Roles.tsx @@ -80,6 +80,7 @@ function Roles(props: Props) { /> } + content="You don’t have the permissions to perform this action." disabled={ isAdmin } size="tiny" inverted