callix-dialer-widget 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54367,14 +54367,16 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
|
|
|
54367
54367
|
] }) }) : null;
|
|
54368
54368
|
if (isMiniMode) {
|
|
54369
54369
|
const isCallActive = isInCall || isConnecting;
|
|
54370
|
-
const
|
|
54370
|
+
const hasNumber = sanitizedDialValue.length > 0;
|
|
54371
|
+
const callButtonDisabled = !isCallActive && !hasNumber;
|
|
54371
54372
|
const miniCanUseKeypad = !availabilityError && (canUseKeypad || isIdle || isOnBreak);
|
|
54372
|
-
console.log("[FloatingDialer Mini] Estado
|
|
54373
|
+
console.log("[FloatingDialer Mini] Estado:", {
|
|
54373
54374
|
miniCanUseKeypad,
|
|
54375
|
+
callButtonDisabled,
|
|
54376
|
+
hasNumber,
|
|
54377
|
+
dialValue: sanitizedDialValue,
|
|
54378
|
+
isNumberValid,
|
|
54374
54379
|
availabilityError,
|
|
54375
|
-
canUseKeypad,
|
|
54376
|
-
isIdle,
|
|
54377
|
-
isOnBreak,
|
|
54378
54380
|
callState,
|
|
54379
54381
|
operatorState: operatorState == null ? void 0 : operatorState.state
|
|
54380
54382
|
});
|