Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jan 15, 2024
1 parent 0289142 commit 6f0f46a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nicegui/elements/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
this.notification(this.options);
},
methods: {
async dismiss() {
dismiss() {
this.notification();
},
},
Expand Down
2 changes: 1 addition & 1 deletion nicegui/elements/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self,
Displays a notification on the screen.
In contrast to `ui.notify`, this element allows to update the notification message and other properties once the notification is displayed.
With a timeout of `None`, the notification can be removed with `dismiss()`.
The notification can be removed with `dismiss()`.
:param message: content of the notification
:param position: position on the screen ("top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right" or "center", default: "bottom")
Expand Down

0 comments on commit 6f0f46a

Please sign in to comment.