feat: dodaj bilješke widget i admin kalendar/notifikacije
Uveden je novi Notes drawer s kalendar integracijom, zajednički DRY left-slide mehanizam te međusobno isključivo prikazivanje s Kalendar widgetom. Backend i frontend su prošireni za servisne bilješke (uključujući slanje na više servisera), dodan je users/servicers endpoint, te su uvedene warning notifikacije kada serviser ima više od 2 zadatka isti dan. U admin su dodane stavke za Bilješke i zaseban Kalendar zadataka (proxy TaskCalendar) radi lakšeg operativnog pregleda. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
17
frontend/src/stores/leftDrawerStore.js
Normal file
17
frontend/src/stores/leftDrawerStore.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { atom } from 'nanostores';
|
||||
|
||||
export const $activeLeftDrawer = atom(null);
|
||||
|
||||
export function openLeftDrawer(drawerId) {
|
||||
$activeLeftDrawer.set(drawerId || null);
|
||||
}
|
||||
|
||||
export function closeLeftDrawer(drawerId = null) {
|
||||
if (!drawerId) {
|
||||
$activeLeftDrawer.set(null);
|
||||
return;
|
||||
}
|
||||
if (String($activeLeftDrawer.get() || '') === String(drawerId)) {
|
||||
$activeLeftDrawer.set(null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user