Build [v1.5.0] - Box Management & Label Printing
This commit is contained in:
@@ -5,6 +5,7 @@ import { inventoryApi } from '@/lib/api';
|
||||
import PageShell from '@/components/PageShell';
|
||||
import {
|
||||
Shield,
|
||||
ShieldAlert,
|
||||
UserPlus,
|
||||
User,
|
||||
Trash2,
|
||||
@@ -357,8 +358,17 @@ export default function AdminPage() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-[10px] font-black text-indigo-400/50 pr-4 italic">
|
||||
Externally Managed
|
||||
<div className="flex items-center gap-1 pr-2">
|
||||
<div className="text-[10px] font-black text-indigo-400/50 pr-4 italic">
|
||||
Cached Profile
|
||||
</div>
|
||||
<button
|
||||
onClick={() => handleDeleteUser(u.id, u.username)}
|
||||
className="p-2.5 bg-rose-500/5 hover:bg-rose-500 text-rose-500 hover:text-white rounded-lg transition-all border border-rose-500/10"
|
||||
title="Clear local cache for this user"
|
||||
>
|
||||
<Trash2 size={14} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
@@ -512,6 +522,27 @@ export default function AdminPage() {
|
||||
)} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{ldapConfig.use_tls && (
|
||||
<div className="flex items-center justify-between gap-4 pt-1 animate-in fade-in slide-in-from-top-1 duration-300">
|
||||
<div className="flex items-center gap-2">
|
||||
<ShieldAlert size={14} className={cn("transition-colors", ldapConfig.ignore_cert ? "text-amber-400" : "text-slate-600")} />
|
||||
<span className="text-[10px] font-black text-slate-400 italic">Ignore Certificate Validation (Self-signed)</span>
|
||||
</div>
|
||||
<button
|
||||
onClick={() => setLdapConfig({ ...ldapConfig, ignore_cert: !ldapConfig.ignore_cert })}
|
||||
className={cn(
|
||||
"relative inline-flex h-6 w-10 items-center rounded-full transition-all duration-300 outline-none",
|
||||
ldapConfig.ignore_cert ? "bg-amber-600" : "bg-slate-800"
|
||||
)}
|
||||
>
|
||||
<span className={cn(
|
||||
"inline-block h-4 w-4 transform rounded-full bg-white transition-transform duration-300",
|
||||
ldapConfig.ignore_cert ? "translate-x-5" : "translate-x-1"
|
||||
)} />
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3 pt-2">
|
||||
|
||||
Reference in New Issue
Block a user