File tree 1 file changed +16
-1
lines changed
husky_components/datagrid
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 720
720
*/
721
721
parseData : function ( data ) {
722
722
this . data = { } ;
723
- this . data . links = data . _links ;
723
+ this . data . links = this . parseLinks ( data . _links ) ;
724
724
this . data . embedded = data . _embedded [ this . options . resultKey ] ;
725
725
this . data . total = data . total ;
726
726
this . data . page = data . page ;
727
727
this . data . pages = data . pages ;
728
728
this . data . limit = data . limit ;
729
729
} ,
730
730
731
+ /**
732
+ * Unescapes all passed links
733
+ * @param links {Object}
734
+ * @returns {Object }
735
+ */
736
+ parseLinks : function ( links ) {
737
+ var linksObj = { } ;
738
+ this . sandbox . util . each ( links , function ( link , index ) {
739
+ linksObj [ index ] = {
740
+ href : decodeURI ( link . href )
741
+ } ;
742
+ } . bind ( this ) ) ;
743
+ return linksObj ;
744
+ } ,
745
+
731
746
/**
732
747
* Gets the view and starts the rendering of the data
733
748
* @param viewId {String} the identifier of the decorator
You can’t perform that action at this time.
0 commit comments