Commits

Sebastian Sdorra committed cb9f54e

improve button handling on repository grid with enabled archive mode

  • Participants
  • Parent commits 4a63638
  • Branches issue-372

Comments (0)

Files changed (1)

scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js

   },
 
   resetPanel: function(){
+    Ext.getCmp('repoRmButton').setDisabled(true);
+    if (state.clientConfig.enableRepositoryArchive){
+      var archiveBt = Ext.getCmp('repoArchiveButton');
+      archiveBt.setText(this.archiveText);
+      archiveBt.setDisabled(true);
+    }
+    this.getGrid().getSelectionModel().clearSelections();
     Sonia.repository.setEditPanel(Sonia.repository.DefaultPanel);
   },
 
   
   repositoryCreated: function(item){
     var grid = this.getGrid();
-    this.clearRepositoryFilter(grid);
     
     grid.reload(function(){
       if (debug){