fix: Conferencing Label When Installing Apps (#10351)
Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
1 parent
c89b217c92
commit
0e62c411f8
2 files changed
+7
-5
No files matched your search
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user