fix: add 'Show Icons for Projects' toggle to settings modal
Per-view setting with translations in all 5 languages (EN, DE, FR, ES, IT). v1.59.2
This commit is contained in:
parent
b26d710fec
commit
ccd069ae80
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.59.1",
|
"version": "1.59.2",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -333,6 +333,7 @@ const translations: Record<string, any> = {
|
|||||||
goalFallback: "Goal Fallback Type",
|
goalFallback: "Goal Fallback Type",
|
||||||
defaultGoal: "Custom Default Goal",
|
defaultGoal: "Custom Default Goal",
|
||||||
showTaskCheckboxes: "Show Checkboxes on Tasks",
|
showTaskCheckboxes: "Show Checkboxes on Tasks",
|
||||||
|
showProjectIcons: "Show Icons for Projects",
|
||||||
showSomeday: "Show Someday Section",
|
showSomeday: "Show Someday Section",
|
||||||
showAllDay: "Show All-Day Section",
|
showAllDay: "Show All-Day Section",
|
||||||
allDayPosition: "All-Day Events Position",
|
allDayPosition: "All-Day Events Position",
|
||||||
@ -549,6 +550,7 @@ const translations: Record<string, any> = {
|
|||||||
goalFallback: "Ziel-Fallback-Typ",
|
goalFallback: "Ziel-Fallback-Typ",
|
||||||
defaultGoal: "Benutzerdefiniertes Standardziel",
|
defaultGoal: "Benutzerdefiniertes Standardziel",
|
||||||
showTaskCheckboxes: "Checkboxen bei Aufgaben anzeigen",
|
showTaskCheckboxes: "Checkboxen bei Aufgaben anzeigen",
|
||||||
|
showProjectIcons: "Icons für Projekte anzeigen",
|
||||||
showSomeday: "Irgendwann-Bereich anzeigen",
|
showSomeday: "Irgendwann-Bereich anzeigen",
|
||||||
showAllDay: "Ganztägige Ereignisse anzeigen",
|
showAllDay: "Ganztägige Ereignisse anzeigen",
|
||||||
allDayPosition: "Position ganztägiger Ereignisse",
|
allDayPosition: "Position ganztägiger Ereignisse",
|
||||||
@ -764,6 +766,7 @@ const translations: Record<string, any> = {
|
|||||||
goalFallback: "Type d'objectif par défaut",
|
goalFallback: "Type d'objectif par défaut",
|
||||||
defaultGoal: "Objectif par défaut personnalisé",
|
defaultGoal: "Objectif par défaut personnalisé",
|
||||||
showTaskCheckboxes: "Afficher les cases à cocher",
|
showTaskCheckboxes: "Afficher les cases à cocher",
|
||||||
|
showProjectIcons: "Afficher les icônes de projets",
|
||||||
showSomeday: "Afficher la section Un jour",
|
showSomeday: "Afficher la section Un jour",
|
||||||
showAllDay: "Afficher la section Journée entière",
|
showAllDay: "Afficher la section Journée entière",
|
||||||
allDayPosition: "Position des événements journée entière",
|
allDayPosition: "Position des événements journée entière",
|
||||||
@ -979,6 +982,7 @@ const translations: Record<string, any> = {
|
|||||||
goalFallback: "Tipo de objetivo por defecto",
|
goalFallback: "Tipo de objetivo por defecto",
|
||||||
defaultGoal: "Objetivo predeterminado personalizado",
|
defaultGoal: "Objetivo predeterminado personalizado",
|
||||||
showTaskCheckboxes: "Mostrar casillas en las tareas",
|
showTaskCheckboxes: "Mostrar casillas en las tareas",
|
||||||
|
showProjectIcons: "Mostrar iconos de proyectos",
|
||||||
showSomeday: "Mostrar sección Algún día",
|
showSomeday: "Mostrar sección Algún día",
|
||||||
showAllDay: "Mostrar sección Todo el día",
|
showAllDay: "Mostrar sección Todo el día",
|
||||||
allDayPosition: "Posición de eventos de todo el día",
|
allDayPosition: "Posición de eventos de todo el día",
|
||||||
@ -1194,6 +1198,7 @@ const translations: Record<string, any> = {
|
|||||||
goalFallback: "Tipo di obiettivo predefinito",
|
goalFallback: "Tipo di obiettivo predefinito",
|
||||||
defaultGoal: "Obiettivo predefinito personalizzato",
|
defaultGoal: "Obiettivo predefinito personalizzato",
|
||||||
showTaskCheckboxes: "Mostra caselle di spunta sulle attività",
|
showTaskCheckboxes: "Mostra caselle di spunta sulle attività",
|
||||||
|
showProjectIcons: "Mostra icone per i progetti",
|
||||||
showSomeday: "Mostra sezione Un giorno",
|
showSomeday: "Mostra sezione Un giorno",
|
||||||
showAllDay: "Mostra sezione Giornata intera",
|
showAllDay: "Mostra sezione Giornata intera",
|
||||||
allDayPosition: "Posizione eventi giornata intera",
|
allDayPosition: "Posizione eventi giornata intera",
|
||||||
@ -11892,6 +11897,16 @@ function SettingsSidebar({
|
|||||||
<label htmlFor="showTaskCheckboxes" style={{ fontSize: "0.9rem", fontWeight: 600 }}>{t.showTaskCheckboxes}</label>
|
<label htmlFor="showTaskCheckboxes" style={{ fontSize: "0.9rem", fontWeight: 600 }}>{t.showTaskCheckboxes}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
|
||||||
|
<input type="checkbox" id="showProjectIcons"
|
||||||
|
checked={perView.getEffective("showProjectIcons", profile.showProjectIcons) as boolean}
|
||||||
|
onChange={(e) => {
|
||||||
|
perView.saveViewSetting("showProjectIcons", e.target.checked, true);
|
||||||
|
}}
|
||||||
|
style={{ width: "16px", height: "16px" }} />
|
||||||
|
<label htmlFor="showProjectIcons" style={{ fontSize: "0.9rem", fontWeight: 600 }}>{t.showProjectIcons}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
{viewStyle !== "kanban" && (
|
{viewStyle !== "kanban" && (
|
||||||
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
|
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
|
||||||
<input type="checkbox" id="protectEventTimes" checked={profile.protectEventTimes || false}
|
<input type="checkbox" id="protectEventTimes" checked={profile.protectEventTimes || false}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user