From b5fbdb06b8e754553bc931b2bdc8884e44dab7f8 Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 4 Oct 2021 21:39:19 +0200 Subject: [PATCH] Minor fixes to notifications --- backend/go-app/go.mod | 4 +- docker-compose.yml | 2 +- frontend/src/views/AngularWorkflow.jsx | 76 +++++--------------------- 3 files changed, 18 insertions(+), 64 deletions(-) diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod index 2de1c49a..42a809d8 100644 --- a/backend/go-app/go.mod +++ b/backend/go-app/go.mod @@ -2,7 +2,7 @@ module shuffle go 1.13 -replace github.com/frikky/shuffle-shared => ../../../../git/shuffle-shared +//replace github.com/frikky/shuffle-shared => ../../../../git/shuffle-shared //replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi @@ -23,7 +23,7 @@ require ( github.com/docker/go-units v0.4.0 // indirect github.com/elastic/go-elasticsearch/v7 v7.13.1 // indirect github.com/frikky/kin-openapi v0.39.0 - github.com/frikky/shuffle-shared v0.1.1 + github.com/frikky/shuffle-shared v0.1.2 github.com/fsouza/go-dockerclient v1.7.2 github.com/ghodss/yaml v1.0.0 github.com/go-git/go-billy/v5 v5.0.0 diff --git a/docker-compose.yml b/docker-compose.yml index 637b9fba..2445fe52 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: frontend: - build: ./frontend + #build: ./frontend image: ghcr.io/frikky/shuffle-frontend:nightly container_name: shuffle-frontend hostname: shuffle-frontend diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index ba560ec3..3627275d 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -7453,64 +7453,6 @@ const AngularWorkflow = (props) => { return null } - const FileMenu = () => { - const [newAnchor, setNewAnchor] = React.useState(null) - const [showShuffleMenu, setShowShuffleMenu] = React.useState(false) - - { /*const [showShuffleMenu, setShowShuffleMenu] = React.useState(true) */} - return ( -
- { - setShowShuffleMenu(false) - }} - > -
-

This menu is used to control the workflow itself.

- - Exit on Error
} - control={ - { - workflow.configuration.exit_on_error = !workflow.configuration.exit_on_error - setWorkflow(workflow) - setUpdate("exit_on_error_"+workflow.configuration.exit_on_error ? "true" : "false") - setShowShuffleMenu(false) - }} /> - } - /> - Start from top
} - control={ - { - workflow.configuration.start_from_top = !workflow.configuration.start_from_top - setWorkflow(workflow) - setUpdate("start_from_top_"+workflow.configuration.start_from_top ? "true" : "false") - setShowShuffleMenu(false) - }} /> - } - /> - - - - - - - - - ) - } - const WorkflowMenu = () => { const [newAnchor, setNewAnchor] = React.useState(null) const [showShuffleMenu, setShowShuffleMenu] = React.useState(false) @@ -7529,6 +7471,19 @@ const AngularWorkflow = (props) => {

This menu is used to control the workflow itself.

+ + Skip Notifications
} + control={ + { + workflow.configuration.skip_notifications = !workflow.configuration.skip_notifications + setWorkflow(workflow) + setUpdate("skip_notifications"+workflow.configuration.skip_notification? "true" : "false") + //setShowShuffleMenu(false) + }} /> + } + /> Exit on Error} @@ -7537,7 +7492,7 @@ const AngularWorkflow = (props) => { workflow.configuration.exit_on_error = !workflow.configuration.exit_on_error setWorkflow(workflow) setUpdate("exit_on_error_"+workflow.configuration.exit_on_error ? "true" : "false") - setShowShuffleMenu(false) + //setShowShuffleMenu(false) }} /> } /> @@ -7549,7 +7504,7 @@ const AngularWorkflow = (props) => { workflow.configuration.start_from_top = !workflow.configuration.start_from_top setWorkflow(workflow) setUpdate("start_from_top_"+workflow.configuration.start_from_top ? "true" : "false") - setShowShuffleMenu(false) + //setShowShuffleMenu(false) }} /> } /> @@ -7714,7 +7669,6 @@ const AngularWorkflow = (props) => { - {/* */} {workflow.configuration !== null && workflow.configuration !== undefined && workflow.configuration.exit_on_error !== undefined ? : null}