mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
fix message
This commit is contained in:
@@ -7,13 +7,15 @@ import { IonicModule } from '@ionic/angular';
|
||||
import { ViewOncesPageRoutingModule } from './view-onces-routing.module';
|
||||
|
||||
import { ViewOncesImagePage } from './view-onces.page';
|
||||
import { PipesModule } from 'src/app/pipes/pipes.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ViewOncesPageRoutingModule
|
||||
ViewOncesPageRoutingModule,
|
||||
PipesModule
|
||||
],
|
||||
declarations: [ViewOncesImagePage]
|
||||
})
|
||||
|
||||
@@ -11,6 +11,14 @@
|
||||
|
||||
<ion-content>
|
||||
<div class="justify-center align-center d-flex width-100 height-100">
|
||||
<img [src]="params.imageDataUrl">
|
||||
|
||||
<img
|
||||
*ngIf="blobURl"
|
||||
[src]="params.imageDataUrl|safehtml"
|
||||
>
|
||||
<img
|
||||
*ngIf="!blobURl"
|
||||
[src]="params.imageDataUrl"
|
||||
>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
@@ -19,19 +19,22 @@ export type ViewOncesImagePageInput = z.infer<typeof ViewOncesImagePageInputSche
|
||||
export class ViewOncesImagePage implements OnInit {
|
||||
|
||||
params: ViewOncesImagePageInput
|
||||
|
||||
blobURl: Boolean;
|
||||
|
||||
constructor(
|
||||
private navParams: NavParams,
|
||||
public modalController: ModalController,
|
||||
) {
|
||||
) {
|
||||
this.params = this.navParams.data
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
// console.log('niceddd')
|
||||
// this.message = this.navParams.get('message');
|
||||
// console.log('this.message', this.message)
|
||||
if(this.params.imageDataUrl.startsWith('blob:http')) {
|
||||
this.blobURl = true
|
||||
} else {
|
||||
this.blobURl = false
|
||||
}
|
||||
}
|
||||
|
||||
closePage() {
|
||||
|
||||
Reference in New Issue
Block a user