mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-08 17:00:47 +00:00
Fix tabs nav (#6898)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
b5c82bcb82
commit
e63d50130b
@ -38,7 +38,7 @@
|
|||||||
if (last != null) {
|
if (last != null) {
|
||||||
try {
|
try {
|
||||||
const newLocation: Location = JSON.parse(last)
|
const newLocation: Location = JSON.parse(last)
|
||||||
if (newLocation.path[2] === app && newLocation.path[3] != null) {
|
if (newLocation.path[1] === loc.path[1] && newLocation.path[2] === app && newLocation.path[3] != null) {
|
||||||
return newLocation
|
return newLocation
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -175,7 +175,7 @@
|
|||||||
const query = createQuery()
|
const query = createQuery()
|
||||||
$: query.query(
|
$: query.query(
|
||||||
workbench.class.WorkbenchTab,
|
workbench.class.WorkbenchTab,
|
||||||
{},
|
{ attachedTo: account._id },
|
||||||
(res) => {
|
(res) => {
|
||||||
tabs = res
|
tabs = res
|
||||||
tabsStore.set(tabs)
|
tabsStore.set(tabs)
|
||||||
@ -788,7 +788,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- <ActivityStatus status="active" /> -->
|
<!-- <ActivityStatus status="active" /> -->
|
||||||
<NavLink app={notificationId} shrink={0} restoreLastLocation>
|
<NavLink app={notificationId} shrink={0}>
|
||||||
<AppItem
|
<AppItem
|
||||||
icon={notification.icon.Notifications}
|
icon={notification.icon.Notifications}
|
||||||
label={notification.string.Inbox}
|
label={notification.string.Inbox}
|
||||||
|
@ -199,7 +199,7 @@ export async function createTab (): Promise<void> {
|
|||||||
try {
|
try {
|
||||||
const last = localStorage.getItem(`${locationStorageKeyId}_${notificationId}`)
|
const last = localStorage.getItem(`${locationStorageKeyId}_${notificationId}`)
|
||||||
const lastLocation: Location | undefined = last != null ? JSON.parse(last) : undefined
|
const lastLocation: Location | undefined = last != null ? JSON.parse(last) : undefined
|
||||||
if (lastLocation != null && lastLocation.path[2] === notificationId) {
|
if (lastLocation != null && lastLocation.path[1] === loc.path[1] && lastLocation.path[2] === notificationId) {
|
||||||
defaultUrl = locationToUrl(lastLocation)
|
defaultUrl = locationToUrl(lastLocation)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user