Sidebar: Projekt-Admin entfernt (Admin-Panel abgeschaltet)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
feda436936
commit
36eb55b81b
12 files changed
+12
-45
No files matched your search
@@ -15,13 +15,11 @@ import {
|
||||
IconLogout,
|
||||
IconLayoutSidebarLeftCollapse,
|
||||
IconLayoutSidebarLeftExpand,
|
||||
IconExternalLink,
|
||||
IconMessages,
|
||||
IconReceiptRefund,
|
||||
IconDiscount,
|
||||
IconMailCog,
|
||||
} from '@tabler/icons-react'
|
||||
import { openProjectAdmin } from '../lib/employeeAdminApi'
|
||||
import { serverpulsApi } from '../lib/serverpulsApi'
|
||||
import { startsCollapsed } from '../lib/sidebar'
|
||||
import { buildNavLinks } from '../lib/navLinks'
|
||||
@@ -49,7 +47,6 @@ export default function Sidebar() {
|
||||
const navigate = useNavigate()
|
||||
const location = useLocation()
|
||||
const [collapsed, setCollapsed] = useState(() => startsCollapsed())
|
||||
const [switching, setSwitching] = useState(false)
|
||||
const [pulseLevel, setPulseLevel] = useState('ok')
|
||||
const counts = useSidebarCounts()
|
||||
|
||||
@@ -67,11 +64,6 @@ export default function Sidebar() {
|
||||
return () => { dead = true; clearInterval(iv) }
|
||||
}, [isAdmin])
|
||||
|
||||
const handleProjectAdmin = async () => {
|
||||
setSwitching(true)
|
||||
await openProjectAdmin()
|
||||
}
|
||||
|
||||
const handleLogout = async () => {
|
||||
await logout()
|
||||
navigate('/login')
|
||||
@@ -139,16 +131,6 @@ export default function Sidebar() {
|
||||
</Link>
|
||||
)),
|
||||
])}
|
||||
<button
|
||||
type="button"
|
||||
className="side-link side-link-button"
|
||||
onClick={handleProjectAdmin}
|
||||
disabled={switching}
|
||||
title="Projekt-Admin"
|
||||
>
|
||||
<IconExternalLink />
|
||||
<span className="side-link-label">Projekt-Admin</span>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ const staffOf = (by) => (by && by !== 'customer' && by !== 'system' ? ` · ${by}
|
||||
const toCents = (value) => Math.round(Number(value) * 100)
|
||||
|
||||
/**
|
||||
* Antrag auf Uebernahmegutschrift: Pruefung und Entscheidung wie im frueheren Admin-Panel (public/admin.js 684-906).
|
||||
* Antrag auf Uebernahmegutschrift: Pruefung und Entscheidung wie im frueheren Admin-Panel.
|
||||
* Waehrend einer Entscheidung sind alle Knoepfe gesperrt (busyRef verhindert auch Doppelklicks vor dem Neuzeichnen).
|
||||
*/
|
||||
export default function CreditDetail({ id, onClose, onChanged, onOpen }) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import '../../styles/admin-areas.css'
|
||||
const MONTHS = Array.from({ length: 12 }, (_, i) => i + 1)
|
||||
|
||||
/**
|
||||
* "Neues Angebot" wie im frueheren Admin-Panel (public/admin.js 1131-1311). Der Kontext (Abo, offene Angebote, Preise)
|
||||
* "Neues Angebot" wie im frueheren Admin-Panel. Der Kontext (Abo, offene Angebote, Preise)
|
||||
* wird genau einmal je gewaehltem Kunden geladen; beim Wechsel sofort geleert, spaete Antworten verworfen. Vorschau
|
||||
* und Speichern erst mit dem Kontext des aktuellen Kunden.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user