[CSTPER-66] utility method to check if remote data has no content

This commit is contained in:
Corrado Lombardi
2020-10-22 15:46:05 +02:00
parent 1127b363e9
commit e1cce311e8

View File

@@ -55,4 +55,8 @@ export class RemoteData<T> {
return this.state === RemoteDataState.Success;
}
get hasNoContent(): boolean {
return this.statusCode === 204;
}
}