diff --git a/Web/templates/base.html b/Web/templates/base.html
index 9f8c761..66e6283 100755
--- a/Web/templates/base.html
+++ b/Web/templates/base.html
@@ -1346,11 +1346,13 @@
{% endif %}
{% if 'username' in session %}
+
{% endif %}
{% if 'username' in session and current_permissions.actions.get('can_insert', False) and current_permissions.pages.get('library_admin', False) %}
@@ -1630,6 +1632,8 @@
+
Neue Benachrichtigung
@@ -1662,7 +1667,7 @@
{% endif %}
{% if current_permissions.pages.get('tutorial_page', False) %}
-
+
{% endif %}
{% endif %}
@@ -1765,10 +1770,10 @@
});
const username = {{ (session['username'] if 'username' in session else '')|tojson }};
- const isTutorialPage = window.location.pathname === {{ url_for('tutorial_page')|tojson }};
+ //const isTutorialPage = window.location.pathname === {{ url_for('tutorial_page')|tojson }};
const isLoginPage = window.location.pathname === {{ url_for('login')|tojson }};
const notificationsPagePath = {{ url_for('notifications_view')|tojson }};
- const onboardingKey = username ? ('inventarsystem_tutorial_prompt_v1_' + username) : null;
+ //const onboardingKey = username ? ('inventarsystem_tutorial_prompt_v1_' + username) : null;
const onboardingOverlay = document.getElementById('onboarding-overlay');
const notificationButtons = Array.from(document.querySelectorAll('[data-notification-button="true"]'));
const notificationToast = document.getElementById('notification-toast');
@@ -1789,9 +1794,9 @@
{% if current_permissions.pages.get('notifications_view', False) %}
{ label: 'Benachrichtigungen', keywords: ['benachrichtigungen', 'nachrichten', 'notifications'], url: {{ url_for('notifications_view')|tojson }} },
{% endif %}
- {% if current_permissions.pages.get('tutorial_page', False) %}
- { label: 'Tutorial', keywords: ['tutorial', 'hilfe', 'anleitung'], url: {{ url_for('tutorial_page')|tojson }} },
- {% endif %}
+ //{% if current_permissions.pages.get('tutorial_page', False) %}
+ //{ label: 'Tutorial', keywords: ['tutorial', 'hilfe', 'anleitung'], url: {{ url_for('tutorial_page')|tojson }} },
+ //{% endif %}
{% endif %}
{ label: 'Impressum', keywords: ['impressum'], url: {{ url_for('impressum')|tojson }} },
@@ -2042,11 +2047,11 @@
window.setInterval(pollNotificationStatus, 30000);
}
- function showOnboarding(){
- if (onboardingOverlay) {
- onboardingOverlay.style.display = 'flex';
- }
- }
+ //function showOnboarding(){
+ // if (onboardingOverlay) {
+ // onboardingOverlay.style.display = 'flex';
+ // }
+ //}
function hideOnboarding(){
if (onboardingOverlay) {
@@ -2054,19 +2059,19 @@
}
}
- if (onboardingKey && !isTutorialPage && !isLoginPage) {
- const decision = localStorage.getItem(onboardingKey);
- if (!decision || decision === 'later') {
- showOnboarding();
- }
- }
+ //if (onboardingKey && !isTutorialPage && !isLoginPage) {
+ // const decision = localStorage.getItem(onboardingKey);
+ // if (!decision || decision === 'later') {
+ // showOnboarding();
+ // }
+ //}
- document.getElementById('onboarding-start')?.addEventListener('click', function(){
- if (onboardingKey) {
- localStorage.setItem(onboardingKey, 'started');
- }
- window.location.href = {{ url_for('tutorial_page')|tojson }};
- });
+ //document.getElementById('onboarding-start')?.addEventListener('click', function(){
+ // if (onboardingKey) {
+ // localStorage.setItem(onboardingKey, 'started');
+ // }
+ // window.location.href = {{ url_for('tutorial_page')|tojson }};
+ //});
document.getElementById('onboarding-later')?.addEventListener('click', function(){
if (onboardingKey) {
@@ -2399,21 +2404,21 @@