Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions apps/meteor/app/api/server/v1/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,12 @@ API.v1.get(
return service;
}

if ((service as OAuthConfiguration).custom || (service.service && ['saml', 'cas', 'wordpress'].includes(service.service))) {
return { ...service };
if (service.service && ['saml', 'cas', 'ldap'].includes(service.service)) {
return { ...service, hideButtonOnMobile: false };
}

if ((service as OAuthConfiguration).custom || (service.service && service.service === 'wordpress')) {
return { ...service, hideButtonOnMobile: true };
}

return {
Expand All @@ -200,6 +204,7 @@ API.v1.get(
buttonColor: service.buttonColor || '',
buttonLabelColor: service.buttonLabelColor || '',
custom: false,
hideButtonOnMobile: true,
};
}),
});
Expand Down
Loading