File tree Expand file tree Collapse file tree 4 files changed +1
-19
lines changed
Expand file tree Collapse file tree 4 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,6 @@ export default function FloatingIpsPage() {
118118 // prettier-ignore
119119 addToast ( < > Floating IP < HL > { floatingIp . name } </ HL > detached</ > )
120120 } ,
121- onError : ( err ) => {
122- addToast ( { title : 'Error' , content : err . message , variant : 'error' } )
123- } ,
124121 } )
125122 const { mutateAsync : deleteFloatingIp } = useApiMutation ( api . floatingIpDelete , {
126123 onSuccess ( _data , variables ) {
Original file line number Diff line number Diff line change @@ -479,9 +479,6 @@ export default function NetworkingTab() {
479479 queryClient . invalidateEndpoint ( 'instanceExternalIpList' )
480480 addToast ( { content : 'Ephemeral IP detached' } )
481481 } ,
482- onError : ( err ) => {
483- addToast ( { title : 'Error' , content : err . message , variant : 'error' } )
484- } ,
485482 } )
486483
487484 const { mutateAsync : floatingIpDetach } = useApiMutation ( api . floatingIpDetach , {
@@ -491,9 +488,6 @@ export default function NetworkingTab() {
491488 // prettier-ignore
492489 addToast ( < > Floating IP < HL > { variables . path . floatingIp } </ HL > detached</ > )
493490 } ,
494- onError : ( err ) => {
495- addToast ( { title : 'Error' , content : err . message , variant : 'error' } )
496- } ,
497491 } )
498492
499493 const { mutateAsync : externalSubnetDetach } = useApiMutation ( api . externalSubnetDetach , {
Original file line number Diff line number Diff line change @@ -113,9 +113,6 @@ export default function StorageTab() {
113113 // prettier-ignore
114114 addToast ( < > Disk < HL > { disk . name } </ HL > detached</ > )
115115 } ,
116- onError ( err ) {
117- addToast ( { title : 'Failed to detach disk' , content : err . message , variant : 'error' } )
118- } ,
119116 } )
120117 const { mutate : createSnapshot } = useApiMutation ( api . snapshotCreate , {
121118 onSuccess ( snapshot ) {
Original file line number Diff line number Diff line change @@ -63,20 +63,14 @@ export const useMakeInstanceActions = (
6363 startInstanceAsync ( instanceParams , {
6464 // prettier-ignore
6565 onSuccess : ( ) => addToast ( < > Starting instance < HL > { instance . name } </ HL > </ > ) ,
66- onError : ( error ) =>
67- addToast ( {
68- variant : 'error' ,
69- title : `Error starting instance '${ instance . name } '` ,
70- content : error . message ,
71- } ) ,
7266 } ) ,
7367 modalTitle : 'Confirm start instance' ,
7468 modalContent : (
7569 < p >
7670 Are you sure you want to start < HL > { instance . name } </ HL > ?
7771 </ p >
7872 ) ,
79- errorTitle : `Error starting ${ instance . name } ` ,
73+ errorTitle : `Error starting instance ' ${ instance . name } ' ` ,
8074 } )
8175 } ,
8276 disabled : ! instanceCan . start ( instance ) && (
You can’t perform that action at this time.
0 commit comments