Add global search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-26 16:08:58 +02:00
parent bfc936f57c
commit 48935e2168
216 changed files with 3646 additions and 2806 deletions

View File

@@ -8,22 +8,22 @@ export class Notifier {
}
success(message: string): void {
this.notification(message, "is-success");
this.notification(message, "success");
}
error(message: string): void {
this.notification(message, "is-danger");
this.notification(message, "danger");
}
info(message: string): void {
this.notification(message, "is-info");
this.notification(message, "info");
}
private notification(message: string, type: string) {
this.app.config.globalProperties.$oruga.notification.open({
message,
duration: 5000,
position: "is-bottom-right",
position: "bottom-right",
type,
hasIcon: true,
});