ember-ebau-gwr 7.5.4 → 7.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/addon/controllers/project.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [7.5.5](https://github.com/inosca/ember-ebau-gwr/compare/v7.5.4...v7.5.5) (2024-03-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **projects:** fix detection of active project id ([c9df3d4](https://github.com/inosca/ember-ebau-gwr/commit/c9df3d40f41956498515659513a445f8dc71a312))
|
|
7
|
+
|
|
1
8
|
## [7.5.4](https://github.com/inosca/ember-ebau-gwr/compare/v7.5.3...v7.5.4) (2024-03-19)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -9,8 +9,14 @@ export default class ProjectController extends Controller {
|
|
|
9
9
|
@service config;
|
|
10
10
|
@service constructionProject;
|
|
11
11
|
|
|
12
|
+
get currentRoute() {
|
|
13
|
+
return this.router.externalRouter.recognize(
|
|
14
|
+
this.router.externalRouter.currentURL,
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
get activeProjectId() {
|
|
13
|
-
return Number(this.
|
|
19
|
+
return Number(this.currentRoute.params.project_id);
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
get isLoading() {
|
|
@@ -20,8 +26,8 @@ export default class ProjectController extends Controller {
|
|
|
20
26
|
get displayLandingPage() {
|
|
21
27
|
return (
|
|
22
28
|
!this.projects.value?.length &&
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
29
|
+
this.currentRoute.localName !== "new" &&
|
|
30
|
+
this.currentRoute.localName !== "errors"
|
|
25
31
|
);
|
|
26
32
|
}
|
|
27
33
|
|