mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +03:00
TSK-1460 Disable inbox popup (#3155)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
9a36559fe2
commit
30980a8556
@ -505,6 +505,7 @@
|
||||
$: checkInbox($popupstore)
|
||||
|
||||
let inboxPopup: PopupResult | undefined = undefined
|
||||
let lastLoc: Location | undefined = undefined
|
||||
</script>
|
||||
|
||||
{#if employee?.active === true}
|
||||
@ -558,23 +559,29 @@
|
||||
selected={currentAppAlias === notificationId || inboxPopup !== undefined}
|
||||
on:click={(e) => {
|
||||
if (e.metaKey || e.ctrlKey) return
|
||||
if (inboxPopup) {
|
||||
inboxPopup.close()
|
||||
} else {
|
||||
inboxPopup = showPopup(
|
||||
notification.component.Inbox,
|
||||
{ visibileNav: true },
|
||||
'content',
|
||||
undefined,
|
||||
undefined,
|
||||
{
|
||||
category: 'popup',
|
||||
overlay: false
|
||||
}
|
||||
)
|
||||
}
|
||||
// if (inboxPopup) {
|
||||
// inboxPopup.close()
|
||||
// } else {
|
||||
// inboxPopup = showPopup(
|
||||
// notification.component.Inbox,
|
||||
// { visibileNav: true },
|
||||
// 'content',
|
||||
// undefined,
|
||||
// undefined,
|
||||
// {
|
||||
// category: 'popup',
|
||||
// overlay: false
|
||||
// }
|
||||
// )
|
||||
// }
|
||||
if (currentAppAlias === notificationId && lastLoc !== undefined) {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
navigate(lastLoc)
|
||||
lastLoc = undefined
|
||||
} else {
|
||||
lastLoc = $location
|
||||
}
|
||||
}}
|
||||
notify={hasNotification}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user