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.
|
* otherwise.
|
||||||
*/
|
*/
|
||||||
export function isToolboxVisible(state: Object) {
|
export function isToolboxVisible(state: Object) {
|
||||||
|
const { iAmSipGateway } = state['features/base/config'];
|
||||||
const {
|
const {
|
||||||
alwaysVisible,
|
alwaysVisible,
|
||||||
timeoutID,
|
timeoutID,
|
||||||
visible
|
visible
|
||||||
} = state['features/toolbox'];
|
} = state['features/toolbox'];
|
||||||
|
|
||||||
return Boolean(timeoutID || visible || alwaysVisible);
|
return Boolean(!iAmSipGateway && (timeoutID || visible || alwaysVisible));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue