fix: No option to install/disconnect app from app detail page (#17997)

* fix: No option to install/disconnect app from app detail page

* Fix types

* fix: Install button showing up even after it is installed for all targers

* chore: Simplified installOrDisconnectAppButton making it easy to read

---------

Co-authored-by: Hariom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-02-26 00:08:59 +05:30
1 parent a3113607ff
commit a4519e705d
5 files changed
+233 -78

No files matched your search

@@ -29,6 +29,18 @@ export const appCredentialsByTypeHandler = async ({ ctx, input }: AppCredentials
],
type: input.appType,
},
include: {
user: {
select: {
name: true,
},
},
team: {
select: {
name: true,
},
},
},
});
// For app pages need to return which teams the user can install the app on