Remove success message display for GCode file, job, and printer creation in NewGCodeFile, NewJob, and NewPrinter components to streamline user feedback during submission.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
457c427928
commit
77611646aa
@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm'
|
||||
import WizardView from '../../common/WizardView'
|
||||
|
||||
const NewGCodeFile = ({ onOk, defaultValues }) => {
|
||||
const { showSuccess } = useMessageContext()
|
||||
return (
|
||||
<NewObjectForm
|
||||
type={'gcodeFile'}
|
||||
@ -78,7 +77,6 @@ const NewGCodeFile = ({ onOk, defaultValues }) => {
|
||||
onSubmit={async () => {
|
||||
const result = await handleSubmit()
|
||||
if (result) {
|
||||
showSuccess('Finished uploading GCode file!')
|
||||
onOk()
|
||||
}
|
||||
}}
|
||||
|
||||
@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm'
|
||||
import WizardView from '../../common/WizardView'
|
||||
|
||||
const NewJob = ({ onOk, defaultValues }) => {
|
||||
const { showSuccess } = useMessageContext()
|
||||
return (
|
||||
<NewObjectForm
|
||||
type={'job'}
|
||||
|
||||
@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm'
|
||||
import WizardView from '../../common/WizardView'
|
||||
|
||||
const NewPrinter = ({ onOk, defaultValues }) => {
|
||||
const { showSuccess } = useMessageContext()
|
||||
return (
|
||||
<NewObjectForm
|
||||
type={'printer'}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user