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'
|
import WizardView from '../../common/WizardView'
|
||||||
|
|
||||||
const NewGCodeFile = ({ onOk, defaultValues }) => {
|
const NewGCodeFile = ({ onOk, defaultValues }) => {
|
||||||
const { showSuccess } = useMessageContext()
|
|
||||||
return (
|
return (
|
||||||
<NewObjectForm
|
<NewObjectForm
|
||||||
type={'gcodeFile'}
|
type={'gcodeFile'}
|
||||||
@ -78,7 +77,6 @@ const NewGCodeFile = ({ onOk, defaultValues }) => {
|
|||||||
onSubmit={async () => {
|
onSubmit={async () => {
|
||||||
const result = await handleSubmit()
|
const result = await handleSubmit()
|
||||||
if (result) {
|
if (result) {
|
||||||
showSuccess('Finished uploading GCode file!')
|
|
||||||
onOk()
|
onOk()
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm'
|
|||||||
import WizardView from '../../common/WizardView'
|
import WizardView from '../../common/WizardView'
|
||||||
|
|
||||||
const NewJob = ({ onOk, defaultValues }) => {
|
const NewJob = ({ onOk, defaultValues }) => {
|
||||||
const { showSuccess } = useMessageContext()
|
|
||||||
return (
|
return (
|
||||||
<NewObjectForm
|
<NewObjectForm
|
||||||
type={'job'}
|
type={'job'}
|
||||||
|
|||||||
@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm'
|
|||||||
import WizardView from '../../common/WizardView'
|
import WizardView from '../../common/WizardView'
|
||||||
|
|
||||||
const NewPrinter = ({ onOk, defaultValues }) => {
|
const NewPrinter = ({ onOk, defaultValues }) => {
|
||||||
const { showSuccess } = useMessageContext()
|
|
||||||
return (
|
return (
|
||||||
<NewObjectForm
|
<NewObjectForm
|
||||||
type={'printer'}
|
type={'printer'}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user