health page, manifest page, watch unauth, begin redesign

This commit is contained in:
Matt Hill
2021-06-22 17:34:56 -06:00
committed by Aiden McClelland
parent 7013364ae8
commit 5d24d9324c
28 changed files with 614 additions and 302 deletions

View File

@@ -22,7 +22,7 @@ export class HttpService {
this.fullUrl = `${window.location.protocol}//${window.location.hostname}:${port}/${url}/${version}`
}
watch401$ (): Observable<{ }> {
watchUnauth$ (): Observable<{ }> {
return this.unauthorizedApiResponse$.asObservable()
}
@@ -36,7 +36,10 @@ export class HttpService {
const res = await this.httpRequest<RPCResponse<T>>(httpOpts)
if (isRpcError(res)) throw new RpcError(res.error)
if (isRpcError(res)) {
if (res.error.code === 34) this.unauthorizedApiResponse$.next(true)
throw new RpcError(res.error)
}
if (isRpcSuccess(res)) return res.result
}