Mercurial > libervia-web
comparison libervia/web/pages/_browser/invitation.py @ 1589:7228fc3c4744
browser (dialog): be sure to remove dialog on `OK` and `Cancel` click + avoid side effects
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 10 Dec 2023 11:00:44 +0100 |
parents | d7c78722e4f8 |
children |
comparison
equal
deleted
inserted
replaced
1588:4ecae80d6d39 | 1589:7228fc3c4744 |
---|---|
419 f"error: unknown invitation type: {self.invitation_type}", | 419 f"error: unknown invitation type: {self.invitation_type}", |
420 "error" | 420 "error" |
421 ) | 421 ) |
422 | 422 |
423 def _on_affiliation_set_cancel(self, evt, notif_elt): | 423 def _on_affiliation_set_cancel(self, evt, notif_elt): |
424 notif_elt.remove() | |
425 self.open() | 424 self.open() |
426 | 425 |
427 def on_affiliation_set(self, entity_jid, name, affiliation_elt, affiliation): | 426 def on_affiliation_set(self, entity_jid, name, affiliation_elt, affiliation): |
428 if affiliation == "publisher": | 427 if affiliation == "publisher": |
429 message = f"Give autorisation to publish to {name}?" | 428 message = f"Give autorisation to publish to {name}?" |