fix: Conferencing Label When Installing Apps (#10351)

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Joe Au-YeungandOmar López authored and GitHub committed 2023-07-25 12:03:00 +05:30
1 parent c89b217c92
commit 0e62c411f8
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -416,7 +416,7 @@ const InstallAppButtonChild = ({
},
});
if (!userAdminTeams?.length || appCategories.some((category) => category === "calendar")) {
if (!userAdminTeams?.length || appCategories.some((category) => ["calendar", "conferencing"].includes(category))) {
return <Button
data-testid="install-app-button"
{...props}
+6 -4
View File
@@ -37,9 +37,11 @@ export function AppCard({ app, credentials, searchText, userAdminTeams }: AppCar
const allowedMultipleInstalls = app.categories && app.categories.indexOf("calendar") > -1;
const appAdded = (credentials && credentials.length) || 0;
const appInstalled = userAdminTeams?.length
? userAdminTeams.length && appAdded >= userAdminTeams.length
: appAdded > 0;
const enabledOnTeams = !app.categories.some(
(category) => category === "calendar" || category === "conferencing"
);
const appInstalled = enabledOnTeams && userAdminTeams ? userAdminTeams.length === appAdded : appAdded > 0;
const [searchTextIndex, setSearchTextIndex] = useState<number | undefined>(undefined);
@@ -198,7 +200,7 @@ const InstallAppButtonChild = ({
if (
!userAdminTeams?.length ||
appCategories.some((category) => category === "calendar" || category === "video")
appCategories.some((category) => category === "calendar" || category === "conferencing")
) {
return (
<Button