mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CSTPER-66] utility method to check if remote data has no content
This commit is contained in:
@@ -55,4 +55,8 @@ export class RemoteData<T> {
|
||||
return this.state === RemoteDataState.Success;
|
||||
}
|
||||
|
||||
get hasNoContent(): boolean {
|
||||
return this.statusCode === 204;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user