fix: show disbaled cancel button only if callstatus is initiating
This commit is contained in:
parent
e228b6a65a
commit
a5ff68c717
@ -68,7 +68,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="calling || !onCall">
|
<div v-else-if="calling || callStatus == 'initiating'">
|
||||||
<Button
|
<Button
|
||||||
size="md"
|
size="md"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
@ -76,7 +76,7 @@
|
|||||||
label="Cancel"
|
label="Cancel"
|
||||||
@click="cancelCall"
|
@click="cancelCall"
|
||||||
class="rounded-lg"
|
class="rounded-lg"
|
||||||
:disabled="!onCall && !calling"
|
:disabled="callStatus == 'initiating'"
|
||||||
>
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<PhoneIcon class="h-4 w-4 rotate-[135deg] fill-white" />
|
<PhoneIcon class="h-4 w-4 rotate-[135deg] fill-white" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user