Aktueller Stand
This commit is contained in:
@@ -94,7 +94,7 @@ export default function CalendarBoard() {
|
||||
const [listQuickRange, setListQuickRange] = useState<
|
||||
"next7" | "next30" | "nextYear" | null
|
||||
>("next30");
|
||||
const [hidePastInList, setHidePastInList] = useState(true);
|
||||
const [hidePastInList, setHidePastInList] = useState(false);
|
||||
const [initialView, setInitialView] = useState(() => {
|
||||
if (typeof window === "undefined") return DEFAULT_CALENDAR_VIEW;
|
||||
try {
|
||||
@@ -1488,7 +1488,7 @@ export default function CalendarBoard() {
|
||||
)
|
||||
}
|
||||
>
|
||||
In 7 Tagen
|
||||
7 Tage
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -1499,7 +1499,7 @@ export default function CalendarBoard() {
|
||||
)
|
||||
}
|
||||
>
|
||||
In 30 Tagen
|
||||
30 Tage
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -1510,14 +1510,14 @@ export default function CalendarBoard() {
|
||||
)
|
||||
}
|
||||
>
|
||||
Nächstes Jahr
|
||||
1 Jahr
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className={filterButtonClass(hidePastInList)}
|
||||
onClick={() => setHidePastInList((current) => !current)}
|
||||
>
|
||||
Vergangene ausblenden
|
||||
Alte ausblenden
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1539,6 +1539,9 @@ export default function CalendarBoard() {
|
||||
>
|
||||
Auswahl löschen
|
||||
</button>
|
||||
<span className="text-xs text-slate-500">
|
||||
{bulkSelection.size} ausgewählt
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
className="rounded-full border border-red-200 p-2 text-red-600"
|
||||
@@ -1559,9 +1562,6 @@ export default function CalendarBoard() {
|
||||
<path d="M10 11v6M14 11v6" strokeLinecap="round" />
|
||||
</svg>
|
||||
</button>
|
||||
<span className="text-xs text-slate-500">
|
||||
{bulkSelection.size} ausgewählt
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -56,6 +56,14 @@ export default function NavBar() {
|
||||
loadAppName();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof document === "undefined") return;
|
||||
const nextTitle = appName?.trim();
|
||||
if (nextTitle) {
|
||||
document.title = nextTitle;
|
||||
}
|
||||
}, [appName]);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof document === "undefined") return;
|
||||
const root = document.documentElement;
|
||||
|
||||
Reference in New Issue
Block a user