shkoliar / magento-grid-colors Goto Github PK
View Code? Open in Web Editor NEWMagento 2 Grid Colors module for colorizing admin grids. Supports saving of states with the help of grid's bookmarks.
License: MIT License
Magento 2 Grid Colors module for colorizing admin grids. Supports saving of states with the help of grid's bookmarks.
License: MIT License
Hi there,
I've just installed this extension on a Magento 2 development site running on Magento 2.3.5
When I first installed it, it seemed to work, but since I've done a full deployment to production mode the sales order grid just doesn't appear even though the page says that there are x number of rows. I get the following javascript error: TypeError: undefined is not an object (evaluating 'mode.template'). When I swap back to developer mode, I still get the same problem.
I've tried to debug the code and was wondering if it may be a clash with the Magento_AsynchronousOperations module which seems to extend the grid listing component itself.
Do you know if this extension has been tested on Magento 2.3.5 with the Magento_AsynchronousOperations module enabled ?
Any help would be much appreciated.
Kind regards
Mark
Greetings!
As the title is self explanatory, I will proceed with my findings from the brief investigation I had so far.
I believe that the issue stems from inside shkoliar/magento-grid-colors/view/adminhtml/web/js/grid/controls/colors.js, more specifically this part:
storageConfig: {
namespace: 'current',
provider: 'ns = ${ $.ns }, index = bookmarks'
}
As when this part is refactored to:
storageConfig: {
name: '${ $.name }_storage',
provider: 'ns = ${ $.ns }, index = bookmarks'
},
selected filters on Default View do get correctly rendered and applied upon reload, but the issue with this approach seems to be that this:
no longer appears upon color selection, but it does appear after filter selection, so if someone doesn't need any filters applied on their custom grid view, just colors, they won't have the option to save the colors to their custom grid view, as it seems like colors aren't getting saved upon selection (not sure why, but I assumed that this should be the case, to behave in the same way upon filter selection), only when the 'Save View as' is clicked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.