handleSubmitResponse(response) {

            if (response.response) {

                response = response.response;
            }

            if (response && response.data) {

                if (!response.data.data || !response.data.data.redir) {

                    this.submitDisabled = false;
                }

                if (response.data.message) {

                    if (!response.data.success) {

                        if (response.data.errors) {

                            const msgDetails =  [];

                            Object.keys(response.data.errors).forEach(field => {

                                response.data.errors[field].forEach(msg => {
                                    msgDetails.push(this.trans('base::' + msg, field));
                                });
                            });

                            window.C.notification.danger(response.data.message, true, msgDetails);

                        }else{

                            window.C.notification.warning(response.data.message);

                        }

                    } else if (response.data.success) {

                        window.C.notification.success(response.data.message);
                    }
                }
            }

            return response;
        }
/**
         * Handles the response for a form submit event
         *
         * @param response
         */
Handles the response for a form submit event
@param response
Handles the response for a form submit event @param response
handleSubmitResponse(response) {
            if (response.response) {
                response = response.response;
            }
            if (response && response.data) {
                if (!response.data.data || !response.data.data.redir) {
                    this.submitDisabled = false;
                }
                if (response.data.message) {
                    if (!response.data.success) {
                        if (response.data.errors) {
                            const msgDetails =  [];
                            Object.keys(response.data.errors).forEach(field => {
                                response.data.errors[field].forEach(msg => {
                                    msgDetails.push(this.trans('base::' + msg, field));
                                });
                            });
                            window.C.notification.danger(response.data.message, true, msgDetails);
                        }else{
                            window.C.notification.warning(response.data.message);
                        }
                    } else if (response.data.success) {
                        window.C.notification.success(response.data.message);
                    }
                }
            }
            return response;
        }
handleSubmitResponse ( response ) { if ( response . response ) { response = response . response ; } if ( response && response . data ) { if ( ! response . data . data || ! response . data . data . redir ) { this . submitDisabled = false ; } if ( response . data . message ) { if ( ! response . data . success ) { if ( response . data . errors ) { const msgDetails = [ ] ; Object . keys ( response . data . errors ) . forEach ( field => { response . data . errors [ field ] . forEach ( msg => { msgDetails . push ( this . trans ( 'base::' + msg , field ) ) ; } ) ; } ) ; window . C . notification . danger ( response . data . message , true , msgDetails ) ; } else { window . C . notification . warning ( response . data . message ) ; } } else if ( response . data . success ) { window . C . notification . success ( response . data . message ) ; } } } return response ; }
Handles the response for a form submit event
 @param response
Handles the response for a form submit event @param response