mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
keep same repository group id after logout and re login
This commit is contained in:
@@ -35,6 +35,7 @@ Ext.grid.GroupingView.prototype.toggleGroupExt = Ext.grid.GroupingView.prototype
|
||||
Ext.override(Ext.grid.GroupingView,{
|
||||
|
||||
storedState: null,
|
||||
idPrefix: '{grid.el.id}',
|
||||
|
||||
initTemplates : function(){
|
||||
this.initTemplatesExt();
|
||||
@@ -54,6 +55,19 @@ Ext.override(Ext.grid.GroupingView,{
|
||||
|
||||
applyState: function(state){
|
||||
this.storedState = state;
|
||||
},
|
||||
|
||||
getPrefix: function(field){
|
||||
var prefix;
|
||||
if ( this.idPrefix == '{grid.id}' ){
|
||||
prefix = this.grid.getId();
|
||||
} else if (this.idPrefix == '{grid.el.id}') {
|
||||
prefix = this.grid.getGridEl().id;
|
||||
} else {
|
||||
prefix = this.idPrefix;
|
||||
}
|
||||
prefix += '-gp-' + field + '-';
|
||||
return prefix;
|
||||
}
|
||||
|
||||
});
|
||||
@@ -200,6 +200,7 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
}
|
||||
},
|
||||
view: new Ext.grid.GroupingView({
|
||||
idPrefix: '{grid.id}',
|
||||
enableGrouping: ! state.clientConfig.disableGroupingGrid,
|
||||
enableNoGroups: false,
|
||||
forceFit: true,
|
||||
|
||||
Reference in New Issue
Block a user