mirror of
https://github.com/directus/directus.git
synced 2026-02-12 12:15:04 -05:00
Public (#373)
* Add note to public page * Add project chooser on public view * Optimize loading order So much nicer to use now Closes #298 * Fix the private project switcher too * Add transition to public view * Prevent project switching if youre already on that project * [WIP] Add reset password form * Add request password reset page * Add jwt-payload util * Install base-64 * Fix test typing * Add new errors to translations * Finish reset password flow * Fix foreground color on v-notice * Fix tests * Allow code in translateError + render project error translated on login * Remove wrong reference to error component * Render project key if name is unknown * Fix date-fns version * Fix tests
This commit is contained in:
@@ -14,7 +14,7 @@ interface Response extends AxiosResponse {
|
||||
config: RequestConfig;
|
||||
}
|
||||
|
||||
export interface Error extends AxiosError {
|
||||
export interface RequestError extends AxiosError {
|
||||
response: Response;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export const onResponse = (response: AxiosResponse | Response) => {
|
||||
return response;
|
||||
};
|
||||
|
||||
export const onError = async (error: Error) => {
|
||||
export const onError = async (error: RequestError) => {
|
||||
const requestsStore = useRequestsStore();
|
||||
const id = (error.response.config as RequestConfig).id;
|
||||
requestsStore.endRequest(id);
|
||||
|
||||
Reference in New Issue
Block a user