toolbox: always hide for SIP gateways

This commit is contained in:
Saúl Ibarra Corretgé 2020-02-25 11:49:49 +01:00 committed by Saúl Ibarra Corretgé
parent cdbc5976a0
commit 6a7594cd9c
1 changed files with 2 additions and 1 deletions

View File

@ -34,11 +34,12 @@ export function isButtonEnabled(name: string) {
* otherwise.
*/
export function isToolboxVisible(state: Object) {
const { iAmSipGateway } = state['features/base/config'];
const {
alwaysVisible,
timeoutID,
visible
} = state['features/toolbox'];
return Boolean(timeoutID || visible || alwaysVisible);
return Boolean(!iAmSipGateway && (timeoutID || visible || alwaysVisible));
}