mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
bug on edit publication not rendering image solved
This commit is contained in:
@@ -63,10 +63,11 @@ export class HttpErrorHandle {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case 400:
|
case 400:
|
||||||
this.toastService._badRequest('Lamentamos, mas houve um problema com sua solicitação. Por favor, tente novamente')
|
this.toastService._badRequest('Não foi possível fazer login. Por favor, verifique as suas credenciais.')
|
||||||
|
/* this.toastService._badRequest('Lamentamos, mas houve um problema com sua solicitação. Por favor, tente novamente') */
|
||||||
break;
|
break;
|
||||||
case 401:
|
case 401:
|
||||||
this.toastService._badRequest('Ocorreu um problema, por favor valide o username e password');
|
this.toastService._badRequest('Não foi possível fazer login. Por favor, verifique as suas credenciais.');
|
||||||
break;
|
break;
|
||||||
case 403:
|
case 403:
|
||||||
this.toastService._badRequest('Lamentamos, você não tem permissão para acessar este serviço.')
|
this.toastService._badRequest('Lamentamos, você não tem permissão para acessar este serviço.')
|
||||||
|
|||||||
@@ -48,11 +48,11 @@
|
|||||||
<ion-thumbnail *ngFor="let seleted of seletedContent.slice(0, displayLimit), let i = index" (click)="deleteFromSeletedContent(i)" lot="start">
|
<ion-thumbnail *ngFor="let seleted of seletedContent.slice(0, displayLimit), let i = index" (click)="deleteFromSeletedContent(i)" lot="start">
|
||||||
|
|
||||||
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'"
|
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'"
|
||||||
name="image" ngDefaultControl [src]="seleted.FileBase64"></ion-img>
|
name="image" ngDefaultControl [src]="'data:image/jpg;base64,' + seleted.FileBase64"></ion-img>
|
||||||
|
|
||||||
<video *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video'" width="70" height="70"
|
<video *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video'" width="70" height="70"
|
||||||
controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline">
|
controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline">
|
||||||
<source type="video/mp4" [src]="seleted.FileBase64">
|
<source type="video/mp4" [src]="'data:video/mp4;base64,' + seleted.FileBase64">
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
|
|||||||
@@ -392,6 +392,8 @@ export class NewPublicationPage implements OnInit {
|
|||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user