fix inbox title

This commit is contained in:
mst 2025-03-11 16:03:31 +03:00
parent f824a88dd9
commit a1186b5c2d
No known key found for this signature in database

View file

@ -165,7 +165,7 @@
const questions = document.querySelectorAll('.question');
const count = questions.length;
document.getElementById('question-count-inbox').textContent = count;
document.title = `Inbox (${count}) | {{ const.appName }}` ? count > 0 : "Inbox | {{ const.appName }}";
document.title = count > 0 ? `{{ _("Inbox") }} (${count}) | {{ const.appName }}` : "{{ _('Inbox') }} | {{ const.appName }}";
}
}
})