Skip to content

Commit 748d9a0

Browse files
committed
Displayed version switcher in admin jobs page
1 parent 8fbbc74 commit 748d9a0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Unreleased
44

5-
* Included v1/v2 switcher in admin-area sub-pages (\#485).
5+
* Included v1/v2 switcher in admin-area job page (\#485).
66
* Setup tests to use PostgreSQL instead of SQlite (\#484).
77
* Implemented tasks admin page (\#484).
88
* Improved form builder used in workflow tasks without JSON Schema and in Meta properties tab (\#481).

src/routes/+layout.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
let clientVersion = __APP_VERSION__;
1616
1717
$: displayVersionSelector =
18-
((selectedSection === 'admin' &&
19-
$page.url.pathname !== '/v2/admin/tasks' &&
20-
$page.url.pathname !== '/v2/admin/tasks-compatibility') ||
21-
!isSubPage($page.url.pathname, apiVersion)) &&
18+
(!isSubPage($page.url.pathname, apiVersion) ||
19+
$page.url.pathname === '/v2/admin/jobs' ||
20+
$page.url.pathname === '/v1/admin/jobs') &&
2221
selectedSection !== 'home';
2322
2423
/**

0 commit comments

Comments
 (0)