NEW_NOTE_NOTICE -> THEME_NEW_NOTE_NOTICE

This commit is contained in:
Tamás Kádár
2024-03-19 12:06:46 +00:00
parent b00846ce9d
commit 239e950f8e
5 changed files with 20 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ pub static ref ALLOW_FILES: bool = std::env::var("ALLOW_FILES")
.unwrap_or("true".to_string())
.parse()
.unwrap();
pub static ref NEW_NOTE_NOTICE: bool = std::env::var("NEW_NOTE_NOTICE")
pub static ref THEME_NEW_NOTE_NOTICE: bool = std::env::var("THEME_NEW_NOTE_NOTICE")
.unwrap_or("true".to_string())
.parse()
.unwrap();

View File

@@ -10,7 +10,7 @@ pub struct Status {
pub max_expiration: u32,
pub allow_advanced: bool,
pub allow_files: bool,
pub new_note_notice: bool,
pub theme_new_note_notice: bool,
// Theme
pub theme_image: String,
pub theme_text: String,

View File

@@ -12,7 +12,7 @@ async fn get_status() -> impl Responder {
max_expiration: *config::MAX_EXPIRATION,
allow_advanced: *config::ALLOW_ADVANCED,
allow_files: *config::ALLOW_FILES,
new_note_notice: *config::NEW_NOTE_NOTICE,
theme_new_note_notice: *config::THEME_NEW_NOTE_NOTICE,
theme_image: config::THEME_IMAGE.to_string(),
theme_text: config::THEME_TEXT.to_string(),
theme_page_title: config::THEME_PAGE_TITLE.to_string(),

View File

@@ -35,9 +35,9 @@
<Canvas value={url} />
</div>
{#if $status?.new_note_notice}
{#if $status?.theme_new_note_notice}
<p>
{@html $t('home.new_note_notice')}
{@html $t('home.theme_new_note_notice')}
</p>
{/if}
<br />