Bug fix: make dismiss during export not fire success toast (#3882)
* Bug fix: make dismiss during export not fire success toast * Fix export fail test, since this failure errors early now * Remove throttling from send side * Move toast.loading out to when first engine command is sent, so it is shown immediately * Use shared, named constants for toast messages * Hook up a couple other error toasts to the `pendingExport.toastId`
This commit is contained in:
@ -77,3 +77,21 @@ export const PLAYWRIGHT_KEY = 'playwright'
|
||||
* allows us to match if the execution of executeAst was interrupted */
|
||||
export const EXECUTE_AST_INTERRUPT_ERROR_MESSAGE =
|
||||
'Force interrupt, executionIsStale, new AST requested'
|
||||
|
||||
/** The messages that appear for exporting toasts */
|
||||
export const EXPORT_TOAST_MESSAGES = {
|
||||
START: 'Exporting...',
|
||||
SUCCESS: 'Exported successfully',
|
||||
FAILED: 'Export failed',
|
||||
}
|
||||
|
||||
/** The messages that appear for "make" command toasts */
|
||||
export const MAKE_TOAST_MESSAGES = {
|
||||
START: 'Starting print...',
|
||||
NO_MACHINES: 'No machines available',
|
||||
NO_MACHINE_API_IP: 'No machine api ip available',
|
||||
NO_CURRENT_MACHINE: 'No current machine available',
|
||||
NO_MACHINE_ID: 'No machine id available',
|
||||
ERROR_STARTING_PRINT: 'Error while starting print',
|
||||
SUCCESS: 'Started print successfully',
|
||||
}
|
||||
|
Reference in New Issue
Block a user