- {#key _id}
+ {#key issue._id}
| undefined = undefined
- let selectedFW: FilteredView[] | undefined = undefined
async function load (fv: FilteredView): Promise {
if (fv.viewletId !== undefined && fv.viewletId !== null) {
const viewlet = await client.findOne(view.class.Viewlet, { _id: fv.viewletId })
@@ -66,7 +65,7 @@
}
const clearSelection = () => {
- selectedId = selectedFW = undefined
+ selectedId = undefined
dispatch('select', false)
}
diff --git a/plugins/workbench-resources/src/components/Workbench.svelte b/plugins/workbench-resources/src/components/Workbench.svelte
index 6a5a0455ff..f42cae13ae 100644
--- a/plugins/workbench-resources/src/components/Workbench.svelte
+++ b/plugins/workbench-resources/src/components/Workbench.svelte
@@ -24,6 +24,7 @@
import request, { RequestStatus } from '@hcengineering/request'
import {
AnyComponent,
+ CompAndProps,
Component,
DatePickerPopup,
Label,
@@ -33,6 +34,7 @@
Popup,
PopupAlignment,
PopupPosAlignment,
+ PopupResult,
ResolvedLocation,
TooltipInstance,
areLocationsEqual,
@@ -43,6 +45,7 @@
location,
navigate,
openPanel,
+ popupstore,
resizeObserver,
showPopup
} from '@hcengineering/ui'
@@ -500,7 +503,18 @@
}
}
- let prevLoc: Location | undefined = undefined
+ function checkInbox (popups: CompAndProps[]) {
+ if (inboxPopup !== undefined) {
+ const exists = popups.find((p) => p.id === inboxPopup?.id)
+ if (!exists) {
+ inboxPopup = undefined
+ }
+ }
+ }
+
+ $: checkInbox($popupstore)
+
+ let inboxPopup: PopupResult | undefined = undefined
{#if employee?.active === true}
@@ -568,17 +582,26 @@
{
- if (currentAppAlias === notificationId) {
- e.preventDefault()
- e.stopPropagation()
- if (prevLoc !== undefined) {
- navigate(prevLoc)
- }
+ if (e.metaKey || e.ctrlKey) return
+ if (inboxPopup) {
+ inboxPopup.close()
} else {
- prevLoc = $location
+ inboxPopup = showPopup(
+ notification.component.Inbox,
+ { visibileNav: true },
+ 'content',
+ undefined,
+ undefined,
+ {
+ category: 'popup',
+ overlay: false
+ }
+ )
}
+ e.preventDefault()
+ e.stopPropagation()
}}
notify={hasNotification}
/>
@@ -672,7 +695,7 @@
-
+