notification mark read

This commit is contained in:
realaravinth
2021-07-16 21:16:49 +05:30
parent 102ef5b4a1
commit 6f690734c5
14 changed files with 89 additions and 41 deletions

View File

@@ -30,8 +30,7 @@ import createError from '../../../components/error';
import VIEWS from '../../../views/v1/routes';
const BTN = <HTMLElement>document.querySelector('.sitekey-form__submit');
const key = BTN.dataset.sitekey;
const BTN_CLASS = document.querySelector('sitekey-form__submit');
const submit = async (e: Event) => {
e.preventDefault();
@@ -44,6 +43,9 @@ const submit = async (e: Event) => {
const levels = LEVELS.getLevels();
console.debug(`[form submition]: levels: ${levels}`);
const btn = <HTMLElement>document.querySelector(`${BTN_CLASS}`);
const key = btn.dataset.sitekey;
const payload = {
levels,
duration,