Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(routing): apply route constants #1227

Merged
merged 11 commits into from
Oct 24, 2023

Conversation

domsteinbach
Copy link
Contributor

No description provided.

@domsteinbach domsteinbach marked this pull request as ready for review October 24, 2023 07:29
@@ -78,27 +78,30 @@ export class OntologyClassInstanceComponent implements OnChanges {
this.session = this._sessionService.getSession();

this._route.params.subscribe((params) => {
console.log('params', params);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove :)

@@ -145,6 +145,10 @@ export class OntologyComponent implements OnInit {
// disable content on small devices
disableContent = false;

// route to classes view
classesLink = `../${RouteConstants.classes}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of creating multiple variables, you can just pass routeConstants to the view:
routeConstants = RouteConstants;

@domsteinbach domsteinbach merged commit 0b0dff5 into main Oct 24, 2023
13 checks passed
@domsteinbach domsteinbach deleted the feature/dev-2570-dsp-app-structure-routes branch October 24, 2023 07:59
irmastnt added a commit that referenced this pull request Oct 30, 2023
…return-true-observables-that-also

* main:
  fix(advanced search link): Add route constant (#1238)
  feat: restore previous advanced search that user executed (#1226)
  refactor(routing): apply route constants (#1227)
  chore(main): release 10.24.2 (#1234)
  fix(date-picker): fix YYYY-MM-dd formatting (#1235)
  chore: Reconfigure all "zio" endpoints to use the original address (#1222)
  fix(project): host listener triggers when user types in an input or textarea (#1233)
  fix(gravsearch-service): incorrect gravsearch generated when searching for a linked property (#1232)
  chore(main): release 10.24.1 (#1225)
  fix(advanced-search): generate correct gravsearch for linked resources with property values (#1229)
  refactor(string literal component): move app string literal component into shared lib (#1209)
  chore(main): release 10.24.0 (#1218)
  chore: update dsp-js to v8.3.6 (#1224)
  feat: dev-2557-update-the-documentation-1 (#1221)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants