mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
fix: prevent closing recording popup (#9125)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
ceaa12b367
commit
919a8bb62f
@ -315,8 +315,12 @@
|
||||
)
|
||||
}
|
||||
|
||||
export function canClose (): boolean {
|
||||
return state === null || state.state === 'stopped'
|
||||
}
|
||||
|
||||
function handleClose (): void {
|
||||
if (state === null || state.state === 'stopped') {
|
||||
if (canClose()) {
|
||||
dispatch('close')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user