Commits

Sascha Szott authored and github-actions[bot] committed 93d10aaf2f7
add missing imports of Angular lifecycle interfaces

(cherry picked from commit 2d9ad8e5cf6f04805dc27e147708ae9367864935)
No tags

src/app/admin/admin-registries/metadata-registry/metadata-registry.component.ts

Modified
1 1 import {
2 2 AsyncPipe,
3 3 NgClass,
4 4 NgForOf,
5 5 NgIf,
6 6 } from '@angular/common';
7 -import { Component } from '@angular/core';
7 +import {
8 + Component,
9 + OnDestroy,
10 +} from '@angular/core';
8 11 import {
9 12 Router,
10 13 RouterLink,
11 14 } from '@angular/router';
12 15 import {
13 16 TranslateModule,
14 17 TranslateService,
15 18 } from '@ngx-translate/core';
16 19 import {
17 20 BehaviorSubject,
53 56 NgForOf,
54 57 NgClass,
55 58 RouterLink,
56 59 ],
57 60 standalone: true,
58 61 })
59 62 /**
60 63 * A component used for managing all existing metadata schemas within the repository.
61 64 * The admin can create, edit or delete metadata schemas here.
62 65 */
63 -export class MetadataRegistryComponent {
66 +export class MetadataRegistryComponent implements OnDestroy {
64 67
65 68 /**
66 69 * A list of all the current metadata schemas within the repository
67 70 */
68 71 metadataSchemas: Observable<RemoteData<PaginatedList<MetadataSchema>>>;
69 72
70 73 /**
71 74 * Pagination config used to display the list of metadata schemas
72 75 */
73 76 config: PaginationComponentOptions = Object.assign(new PaginationComponentOptions(), {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut