Skip to content
Snippets Groups Projects
Commit 971aa35e authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #21979 TIME 0:05 add a neutral notification

parent 7472436d
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,17 @@ export class NotificationService {
toast.present();
}
async message(message: string) {
const msg = message.includes('lang.') ? this.translate.instant(message) : message;
const toast = await this.toastController.create({
cssClass: 'notif-primary',
duration: 3000,
message: msg,
position: 'top'
});
toast.present();
}
async error(message: string) {
const msg = message.includes('lang.') ? this.translate.instant(message) : message;
const toast = await this.toastController.create({
......
......@@ -75,6 +75,17 @@ input:read-only {
font-weight: bold;
}
.notif-primary {
z-index: 60003;
--background: white;
--color: var(--ion-color-primary);
--border-color: var(--ion-color-primary);
--border-width: 1px;
--border-style: solid;
text-align: center;
font-weight: bold;
}
.fullscreen {
--width: 100%;
--height: 100%;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment