mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
multiples improvements
This commit is contained in:
@@ -5,18 +5,17 @@ import { LoadingController } from '@ionic/angular';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class LoadingService {
|
||||
loading:any;
|
||||
|
||||
constructor(public loadingController: LoadingController) { }
|
||||
|
||||
async simpleLoading(message:string) {
|
||||
const loading = await this.loadingController.create({
|
||||
async simpleLoading() {
|
||||
this.loading = await this.loadingController.create({
|
||||
cssClass: 'my-custom-class',
|
||||
message:message,
|
||||
message:'A carregar!...',
|
||||
duration: 2000
|
||||
});
|
||||
await loading.present();
|
||||
|
||||
const { role, data } = await loading.onDidDismiss();
|
||||
await this.loading.present();
|
||||
}
|
||||
|
||||
async customizedLoading() {
|
||||
|
||||
@@ -139,9 +139,7 @@ export class PublicationsService {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
return this.http.delete(`${geturl}`, options).toPromise().then(res =>{
|
||||
console.log(res);
|
||||
});
|
||||
return this.http.delete(`${geturl}`, options).toPromise();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user