mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
ios shared works on ipad
This commit is contained in:
@@ -104,7 +104,8 @@ export class HomePage implements OnInit {
|
||||
public ActiveTabService: ActiveTabService,
|
||||
private RoleIdService: RoleIdService,
|
||||
private modalController: ModalController,
|
||||
private zone: NgZone
|
||||
private zone: NgZone,
|
||||
public alertController: AlertController,
|
||||
|
||||
// private ChunkService: ChunkService,
|
||||
// private StreamService: StreamService
|
||||
@@ -165,7 +166,11 @@ export class HomePage implements OnInit {
|
||||
}
|
||||
if (result.url) {
|
||||
window["sharedContent"] = result;
|
||||
this.zone.run(() => this.router.navigateByUrl("/home/publications"));
|
||||
this.zone.run(() => this.router.navigateByUrl("/home/publications")).then(() => {
|
||||
this.alertMessageSharerContent();
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}).catch(err => console.error(err));
|
||||
|
||||
@@ -410,4 +415,20 @@ export class HomePage implements OnInit {
|
||||
})
|
||||
}
|
||||
|
||||
alertMessageSharerContent() {
|
||||
this.alertController .create({
|
||||
header: 'Selecione uma acção para criar a publicação',
|
||||
message: '',
|
||||
buttons: [
|
||||
{
|
||||
text: 'Ok',
|
||||
handler: () => {
|
||||
}
|
||||
}
|
||||
]
|
||||
}).then(res => {
|
||||
res.present();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user