Skip to content

Commit

Permalink
You're able to completely turn off greetings
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialFreak authored and Belissimo-T committed May 22, 2024
1 parent 610d758 commit b3dc72f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
$: $logged_in && (get_settings(), get_favorites(navigate_favorite));
$: ($settings && Object.keys($settings).length !== 0) && localStorage.setItem("settings", `${JSON.stringify($settings)}`);
$: update_colors($settings);
$: $logged_in && get_greeting();
$: $logged_in && ($settings.normal_greetings || $settings.chatgpt_greetings) && get_greeting();
$: selected_form && set_plan("forms", selected_form);
$: gen_form_arr(grouped_forms);
Expand Down Expand Up @@ -446,7 +446,9 @@
{:else if $logged_in}
<!-- !!! Update NotFound protected_routes when adding a new route !!! -->
{#if $current_page.substring(0, 4) === "plan" || $current_page.substring(0, 8) === "weekplan"}
{#if $settings.normal_greetings || $settings.chatgpt_greetings}
<h1 class="responsive-heading">{emoji} {greeting}</h1>
{/if}
<!-- {#if $selected_favorite !== -1 && $favorites[$selected_favorite]}
Gewählter Favorit: {$favorites[$selected_favorite].name}
<br>
Expand Down

0 comments on commit b3dc72f

Please sign in to comment.