changeset 1351:2c3bc7284992

browser (photos/album): fixed notifications
author Goffi <goffi@goffi.org>
date Sat, 05 Sep 2020 21:59:23 +0200
parents a32f3f47e4a8
children d100d3a07dd7
files libervia/pages/photos/album/_browser/__init__.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/photos/album/_browser/__init__.py	Sat Sep 05 21:59:20 2020 +0200
+++ b/libervia/pages/photos/album/_browser/__init__.py	Sat Sep 05 21:59:23 2020 +0200
@@ -38,7 +38,7 @@
 
 
 def on_error(failure, file_, photo_elt):
-    dialog.notification(
+    dialog.notification.show(
         f"can't upload {file_.name}: failure",
         level="error"
     )
@@ -63,7 +63,7 @@
 
 
 def on_slot_eb(file_, failure, photo_elt):
-    dialog.notification(
+    dialog.notification.show(
         f"Can't get upload slot: {failure}",
         level="error"
     )
@@ -130,7 +130,7 @@
 
 
 def file_delete_eb(failure, item_elt, item):
-    dialog.notification(
+    dialog.notification.show(
         f"error while deleting {item['name']}: failure",
         level="error"
     )