mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-21 23:12:11 +01:00
fix store filter on reload
This commit is contained in:
@@ -41,6 +41,8 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
formTitleText: 'Repository Form',
|
||||
unknownType: 'Unknown',
|
||||
|
||||
archiveIcon: 'resources/images/archive.png',
|
||||
|
||||
filterRequest: null,
|
||||
|
||||
/**
|
||||
@@ -155,7 +157,9 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
header: this.colArchiveText,
|
||||
dataIndex: 'archived',
|
||||
width: 40,
|
||||
hidden: true //! state.clientConfig.enableRepositoryArchive
|
||||
hidden: ! state.clientConfig.enableRepositoryArchive,
|
||||
renderer: this.renderArchive,
|
||||
scope: this
|
||||
},{
|
||||
id: 'group',
|
||||
dataIndex: 'group',
|
||||
@@ -207,6 +211,10 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
}
|
||||
},
|
||||
|
||||
renderArchive: function(v){
|
||||
return v ? '<img src=' + this.archiveIcon + ' alt=' + v + '>' : '';
|
||||
},
|
||||
|
||||
convertToGroup: function(v, data){
|
||||
var name = data.name;
|
||||
var i = name.lastIndexOf('/');
|
||||
@@ -238,6 +246,9 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
if (this.searchValue){
|
||||
this.filterStore();
|
||||
}
|
||||
if (this.filterRequest){
|
||||
this.filterByRequest();
|
||||
}
|
||||
},
|
||||
|
||||
onFallBelowMinHeight: function(height, minHeight){
|
||||
|
||||
Reference in New Issue
Block a user