Separate script publishing, job assignment and interactive approval in the WebUI

This commit is contained in:
2026-11-17 22:42:31 +01:00
parent 2100e6a4ce
commit 477a63f20e
13 changed files with 1027 additions and 294 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ type Props = {
onFilter: (id: string) => void;
selection: Target;
onSelection: (s: Target) => void;
onScripts: () => void;
onCreateOrder: () => void;
onEnroll: () => void;
onOperation: (customer: string, id: string) => void;
};
@@ -298,7 +298,7 @@ export function Devices({
selection,
onSelection,
onEnroll,
onScripts,
onCreateOrder,
onOperation
}: Props) {
const [search, setSearch] = useState(''),
@@ -596,7 +596,7 @@ export function Devices({
<button className="quiet" onClick={() => onSelection({ customer: '', ids: [] })}>
Auswahl aufheben
</button>
<button onClick={onScripts}>Skript auswählen</button>
<button disabled={!allowed(auth, 'operations:plan')} onClick={onCreateOrder}>Auftrag erstellen</button>
</div>
)}
</>