Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 5396ec0

Browse files
committed
Minor change
1 parent 76b5884 commit 5396ec0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

client/components/resource/resource-page/resource-page.component.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,16 @@ export class ResourcePageComponent implements OnInit {
121121

122122
deleteResource(resource: Resource): void {
123123
if (resource) {
124-
this.resourceService.remove(resource).subscribe(() => {
125-
this.router.navigate(['..'], { relativeTo: this.route });
126-
this.notificationService.info(`The ${this.entityType} has been successfully deleted.`);
127-
}, err => {
128-
console.error(err);
129-
this.notificationService.error(`Unable to remove ${this.entityType}.`);
130-
});
124+
this.resourceService.remove(resource).subscribe(
125+
() => {
126+
this.router.navigate(['..'], { relativeTo: this.route });
127+
this.notificationService.info(`The ${this.entityType} has been successfully deleted.`);
128+
},
129+
err => {
130+
console.error(err);
131+
this.notificationService.error(`Unable to remove ${this.entityType}.`);
132+
}
133+
);
131134
}
132135
}
133136

0 commit comments

Comments
 (0)