[IMPROVEMENT] Checks if custom OAuth button should be shown (#1140)
This commit is contained in:
parent
8309c45c64
commit
3a247454ca
|
@ -806,9 +806,11 @@ const RocketChat = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_determineAuthType(services) {
|
_determineAuthType(services) {
|
||||||
const { name, custom, service } = services;
|
const {
|
||||||
|
name, custom, showButton = true, service
|
||||||
|
} = services;
|
||||||
|
|
||||||
if (custom) {
|
if (custom && showButton) {
|
||||||
return 'oauth_custom';
|
return 'oauth_custom';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue