|
|
@ -97,6 +97,7 @@ app.cacheBuster = null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
createHeaderTooltips();
|
|
|
|
createHeaderTooltips();
|
|
|
|
|
|
|
|
app.showEmailConfirmWarning();
|
|
|
|
app.showCookieWarning();
|
|
|
|
app.showCookieWarning();
|
|
|
|
registerServiceWorker();
|
|
|
|
registerServiceWorker();
|
|
|
|
|
|
|
|
|
|
|
@ -754,24 +755,7 @@ app.cacheBuster = null;
|
|
|
|
app.showEmailConfirmWarning = async (err) => {
|
|
|
|
app.showEmailConfirmWarning = async (err) => {
|
|
|
|
const storage = await app.require('storage');
|
|
|
|
const storage = await app.require('storage');
|
|
|
|
|
|
|
|
|
|
|
|
let showModal = false;
|
|
|
|
if (!app.user.uid || parseInt(storage.getItem('email-confirm-dismiss'), 10) === 1) {
|
|
|
|
switch (ajaxify.data.template.name) {
|
|
|
|
|
|
|
|
case 'recent': {
|
|
|
|
|
|
|
|
showModal = !ajaxify.data.canPost;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'category': {
|
|
|
|
|
|
|
|
showModal = !ajaxify.data.privileges['topics:create'];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'topic': {
|
|
|
|
|
|
|
|
showModal = !ajaxify.data.privileges['topics:reply'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!showModal || !app.user.uid || parseInt(storage.getItem('email-confirm-dismiss'), 10) === 1) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const msg = {
|
|
|
|
const msg = {
|
|
|
|