Improved notifications

This commit is contained in:
2019-11-20 16:47:00 +09:00
parent 4ad52042ba
commit 2d139e6381
4 changed files with 17 additions and 10 deletions

View File

@ -9,25 +9,25 @@ component SettingsNotifications(user *arn.User)
Icon("bell")
span Instant notifications
#enable-notifications.widget-section
#notifications-enable.widget-section
label Instant notifications:
button.action(data-action="enableNotifications", data-trigger="click")
Icon("toggle-off")
span OFF
#disable-notifications.widget-section.hidden
#notifications-disable.widget-section.hidden
label Instant notifications:
button.action(data-action="disableNotifications", data-trigger="click")
Icon("toggle-on")
span ON
#test-notification.widget-section
#notifications-test.widget-section
label Test:
button.action(data-action="testNotification", data-trigger="click")
Icon("paper-plane")
span Send test notification
footer.footer
footer#notifications-footer.footer
p(title="This setting is not account bound, instead it is bound to your browser.") You can customize this setting on every device you own.
//- .widget.mountable(data-api="/api/settings/" + user.ID)