|
|
|
|
@ -213,6 +213,22 @@ export class CommonService {
|
|
|
|
|
toast.present();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public redToastPK(page: string, key: string) {
|
|
|
|
|
this.redToast(this.ts.trPK(page, key));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async redToast(message: string) {
|
|
|
|
|
const toast = await this.toastController.create({
|
|
|
|
|
message: message,
|
|
|
|
|
showCloseButton: true,
|
|
|
|
|
position: 'middle',
|
|
|
|
|
duration: 2000,
|
|
|
|
|
color: 'danger',
|
|
|
|
|
closeButtonText: this.ts.trPK('general', 'close')
|
|
|
|
|
});
|
|
|
|
|
toast.present();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private loaderIsActive = false;
|
|
|
|
|
async startLoadingOld() {
|
|
|
|
|
this.stopLoading();
|
|
|
|
|
|