toolbox: always hide for SIP gateways
This commit is contained in:
parent
cdbc5976a0
commit
6a7594cd9c
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue