remove confirmnation message on clicking on delete Action



  • Admin> customer> review> remove confirmnation message on clicking on edit Action



  • Hi @yousuf

    There is a view called table.blade.php inside datagrid folder of UI package's view, you need to override this view in your package.
    In this view file, you can find a function name called doAction. Replace this functions code with below code.

    doAction: function(e) {
                            var element = e.currentTarget;
    
                            axios.post(element.getAttribute('data-action'), {
                                _token : element.getAttribute('data-token'),
                                _method : element.getAttribute('data-method')
                            }).then(function(response) {
                                this.result = response;
                                location.reload();
                            }).catch(function (error) {
                                location.reload();
                            });
    
                            e.preventDefault();
                        },
    

    you can see this one for overriding view - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto

    Thanks


Log in to reply