Bottone Registrati: manca getlang che non funziona....

This commit is contained in:
paolo
2018-11-12 18:08:06 +01:00
parent 0e383f3493
commit f5b73414b1
16 changed files with 87 additions and 59 deletions

View File

@@ -1,4 +1,4 @@
export { IPayload } from './payload';
export { IPayloadMessage } from './payload-message';
export * from './payload-mapper';
export { IPayload } from './payload'
export { IPayloadMessage } from './payload-message'
export * from './payload-mapper'

View File

@@ -9,7 +9,6 @@ export class PayloadMapper {
private fromError<T>(o: Error): IPayload<T> {
return {
// @ts-ignore
data: null,
message: {
messageTypeId: PayloadMessageTypes.error,
@@ -21,7 +20,6 @@ export class PayloadMapper {
private fromAxiosError<T>(o: AxiosError): IPayload<T> {
// @ts-ignore
let data: T = null
if (o.response && isAxiosResponse(o.response))
@@ -39,7 +37,6 @@ export class PayloadMapper {
private fromAxiosResponse<T>(o: AxiosResponse): IPayload<T> {
// @ts-ignore
let value: IPayload<T> = null
if (isPayload<T>(o.data))
@@ -49,7 +46,6 @@ export class PayloadMapper {
data: <any>o.data,
message: {
messageTypeId: PayloadMessageTypes.success,
// @ts-ignore
text: null
}
}
@@ -67,7 +63,6 @@ export class PayloadMapper {
if (isAxiosResponse(o))
return this.fromAxiosResponse<T>(o)
// @ts-ignore
return null
}
}

View File

@@ -1,6 +1,6 @@
export interface IPayloadMessage {
text: string;
title?: string;
messageTypeId: string;
text: string
title?: string
messageTypeId: string
}