Separate script publishing, job assignment and interactive approval in the WebUI
This commit is contained in:
+3
-3
@@ -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>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user