-
Notifications
You must be signed in to change notification settings - Fork 22
feat(registry-overview): establish routing, sidenav, store #135
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
Conversation
# Conflicts: # src/app/features/project/overview/components/overview-toolbar/overview-toolbar.component.html
f68b7bb to
5eeac02
Compare
src/app/features/registry/pages/registry-overview/registry-overview.component.scss
Outdated
Show resolved
Hide resolved
src/app/features/registry/pages/registry-overview/registry-overview.component.scss
Outdated
Show resolved
Hide resolved
src/app/features/registry/pages/registry-overview/registry-overview.component.scss
Show resolved
Hide resolved
|
|
||
| <div class="flex gap-4"> | ||
| <div class="left-section gap-4"> | ||
| <!-- TODO: statuses and schema updates--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What this comment for? Is it not finished?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, currently working on it
| {{ 'registry.overview.updates' | translate }} | ||
| </p-accordion-header> | ||
| <p-accordion-content> | ||
| <div class="content">Important</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation
src/app/features/registry/models/get-registry-schema-block-json-api.model.ts
Outdated
Show resolved
Hide resolved
|
|
||
| addRegistrationToBookmarks(bookmarksId: string, registryId: string): Observable<void> { | ||
| const url = `${environment.apiUrl}/collections/${bookmarksId}/relationships/linked_registrations/`; | ||
| const payload = { | ||
| data: [ | ||
| { | ||
| type: 'linked_registrations', | ||
| id: registryId, | ||
| }, | ||
| ], | ||
| }; | ||
|
|
||
| return this.#jsonApiService.post<void>(url, payload); | ||
| } | ||
|
|
||
| removeRegistrationFromBookmarks(bookmarksId: string, registryId: string): Observable<void> { | ||
| const url = `${environment.apiUrl}/collections/${bookmarksId}/relationships/linked_registrations/`; | ||
| const payload = { | ||
| data: [ | ||
| { | ||
| type: 'linked_registrations', | ||
| id: registryId, | ||
| }, | ||
| ], | ||
| }; | ||
|
|
||
| return this.#jsonApiService.delete(url, payload); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why registration in collection service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because we had adding and removeing projects to bookmarks collection so I've also added adding\removing registrations to the same place
…r-osf into feat/215-registries-overview # Conflicts: # src/app/features/project/overview/components/overview-toolbar/overview-toolbar.component.html # src/app/features/project/overview/components/overview-toolbar/overview-toolbar.component.ts
…r-osf into feat/215-registries-overview # Conflicts: # src/app/core/components/nav-menu/nav-menu.component.ts # src/app/features/collections/store/collections.actions.ts # src/app/features/collections/store/collections.state.ts # src/app/features/my-projects/services/my-projects.service.ts # src/app/shared/components/index.ts # src/app/shared/models/index.ts # src/assets/i18n/en.json
commit: [establish routing, sidenav, store]
commit: [mapper, get bookmarks, overview-toolbar]