mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 16:56:07 +00: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)
|
$: checkInbox($popupstore)
|
||||||
|
|
||||||
let inboxPopup: PopupResult | undefined = undefined
|
let inboxPopup: PopupResult | undefined = undefined
|
||||||
|
let lastLoc: Location | undefined = undefined
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if employee?.active === true}
|
{#if employee?.active === true}
|
||||||
@ -558,23 +559,29 @@
|
|||||||
selected={currentAppAlias === notificationId || inboxPopup !== undefined}
|
selected={currentAppAlias === notificationId || inboxPopup !== undefined}
|
||||||
on:click={(e) => {
|
on:click={(e) => {
|
||||||
if (e.metaKey || e.ctrlKey) return
|
if (e.metaKey || e.ctrlKey) return
|
||||||
if (inboxPopup) {
|
// if (inboxPopup) {
|
||||||
inboxPopup.close()
|
// inboxPopup.close()
|
||||||
} else {
|
// } else {
|
||||||
inboxPopup = showPopup(
|
// inboxPopup = showPopup(
|
||||||
notification.component.Inbox,
|
// notification.component.Inbox,
|
||||||
{ visibileNav: true },
|
// { visibileNav: true },
|
||||||
'content',
|
// 'content',
|
||||||
undefined,
|
// undefined,
|
||||||
undefined,
|
// undefined,
|
||||||
{
|
// {
|
||||||
category: 'popup',
|
// category: 'popup',
|
||||||
overlay: false
|
// overlay: false
|
||||||
}
|
// }
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
|
if (currentAppAlias === notificationId && lastLoc !== undefined) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
navigate(lastLoc)
|
||||||
|
lastLoc = undefined
|
||||||
|
} else {
|
||||||
|
lastLoc = $location
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
notify={hasNotification}
|
notify={hasNotification}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user