Skip to content

Commit ed76903

Browse files
committed
Wire up automatic install type for VPP apps in software titles list
1 parent ec1f0f0 commit ed76903

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

frontend/pages/SoftwarePage/SoftwareTitles/SoftwareTable/SoftwareTitlesTableConfig.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,20 @@ const getSoftwareNameCellData = (
7575
if (software_package) {
7676
hasPackage = true;
7777
isSelfService = software_package.self_service;
78-
if (
78+
installType =
7979
software_package.automatic_install_policies &&
8080
software_package.automatic_install_policies.length > 0
81-
) {
82-
installType = "automatic";
83-
} else {
84-
installType = "manual";
85-
}
81+
? "automatic"
82+
: "manual";
8683
} else if (app_store_app) {
8784
hasPackage = true;
8885
isSelfService = app_store_app.self_service;
8986
iconUrl = app_store_app.icon_url;
87+
installType =
88+
app_store_app.automatic_install_policies &&
89+
app_store_app.automatic_install_policies.length > 0
90+
? "automatic"
91+
: "manual";
9092
}
9193

9294
const isAllTeams = teamId === undefined;

0 commit comments

Comments
 (0)