34 lines
758 B
JavaScript
34 lines
758 B
JavaScript
|
|
/**
|
||
|
|
* @fileoverview Notifications Page Component for Rantii
|
||
|
|
* @author retoor <retoor@molodetz.nl>
|
||
|
|
* @description User notifications view page
|
||
|
|
* @keywords notifications, page, alerts, mentions, updates
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { BaseComponent } from '../components/base-component.js';
|
||
|
|
|
||
|
|
class NotificationsPage extends BaseComponent {
|
||
|
|
init() {
|
||
|
|
this.render();
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
this.addClass('page', 'notifications-page');
|
||
|
|
|
||
|
|
this.setHtml(`
|
||
|
|
<notification-list></notification-list>
|
||
|
|
`);
|
||
|
|
}
|
||
|
|
|
||
|
|
refresh() {
|
||
|
|
const list = this.$('notification-list');
|
||
|
|
if (list) {
|
||
|
|
list.refresh();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
customElements.define('notifications-page', NotificationsPage);
|
||
|
|
|
||
|
|
export { NotificationsPage };
|