68346: edit-bitstream-page onCancel

This commit is contained in:
Kristof De Langhe
2020-02-11 13:16:00 +01:00
parent 87d7bc1a20
commit 78c6144f71

View File

@@ -494,6 +494,13 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
this.bitstream.metadata = newMetadata; this.bitstream.metadata = newMetadata;
} }
/**
* Cancel the form and return to the previous page
*/
onCancel() {
this.location.back();
}
/** /**
* Unsubscribe from open subscriptions * Unsubscribe from open subscriptions
*/ */