Added extra authentication checker to workflow configuration popup

This commit is contained in:
frikky
2021-05-12 12:40:45 +02:00
parent 26b76ad3a1
commit 5dca18edf9
3 changed files with 34 additions and 14 deletions
+9 -11
View File
@@ -6554,6 +6554,15 @@ const AngularWorkflow = (props) => {
</Button>
</span>
</Tooltip>
<Tooltip color="secondary" title="Undo" placement="top-start">
<span>
<Button disabled={history.length === 0} color="primary" style={{height: 50, marginLeft: 10, }} variant="outlined" onClick={(event) => {
handleHistoryUndo(history)
}}>
<UndoIcon />
</Button>
</span>
</Tooltip>
<Tooltip color="secondary" title="Remove selected item (del)" placement="top-start">
<span>
<Button color="primary" disabled={workflow.public} style={{height: 50, marginLeft: 10, }} variant="outlined" onClick={() => {
@@ -6575,17 +6584,6 @@ const AngularWorkflow = (props) => {
</Tooltip>
{/* <FileMenu /> */}
{workflow.configuration !== null && workflow.configuration !== undefined && workflow.configuration.exit_on_error !== undefined ? <WorkflowMenu /> : null}
{history.length > 0 ?
<Tooltip color="secondary" title="Undo" placement="top-start">
<span>
<Button color="primary" style={{height: 50, marginLeft: 10, }} variant="outlined" onClick={(event) => {
handleHistoryUndo(history)
}}>
<UndoIcon />
</Button>
</span>
</Tooltip>
: null}
</div>
</div>
)
+7
View File
@@ -20,6 +20,13 @@ const chipStyle = {
backgroundColor: "#3d3f43", height: 30, marginRight: 5, paddingLeft: 5, paddingRight: 5, height: 28, cursor: "pointer", borderColor: "#3d3f43", color: "white",
}
// Fixes names by making them uppercase and such
// Used for labels. A lot of places don't use this yet
export const FixName = (name) => {
const newAppname = (name.charAt(0).toUpperCase()+name.substring(1)).replaceAll("_", " ")
return newAppname
}
// Parses JSON data into keys that can be used everywhere :)
export const GetParsedPaths = (inputdata, basekey) => {
const splitkey = " > "