Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
NEXUS-689: browsing content selector now disabled for all but proxy r…
Browse files Browse the repository at this point in the history
…epos

git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/trunk/nexus@1682 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information
dip committed Sep 30, 2008
1 parent 1ce9977 commit 6508a7d
Showing 1 changed file with 31 additions and 16 deletions.
Expand Up @@ -330,6 +330,26 @@ Sonatype.repoServer.RepoMaintPanel = function(config){
// END: Repo List ******************************************************
// *********************************************************************

this.browseLocalMenuItem = new Ext.menu.CheckItem(
{
text: 'Browse local storage',
value: 0,
checked: true,
group:'browse-group',
checkHandler: this.browseSelectorHandler,
scope:this
}
);
this.browseIndexMenuItem = new Ext.menu.CheckItem(
{
text: 'Browse remote index',
value: 1,
checked: false,
group:'browse-group',
checkHandler: this.browseSelectorHandler,
scope:this
}
);
this.browseSelector = new Ext.Toolbar.Button(
{
text: 'Browse local storage',
Expand All @@ -340,22 +360,8 @@ Sonatype.repoServer.RepoMaintPanel = function(config){
id:'browse-content-menu',
width:200,
items: [
{
text: 'Browse local storage',
value: 0,
checked: true,
group:'browse-group',
checkHandler: this.browseSelectorHandler,
scope:this
},
{
text: 'Browse remote index',
value: 1,
checked: false,
group:'browse-group',
checkHandler: this.browseSelectorHandler,
scope:this
}
this.browseLocalMenuItem,
this.browseIndexMenuItem
]
}
}
Expand Down Expand Up @@ -688,6 +694,15 @@ Ext.extend(Sonatype.repoServer.RepoMaintPanel, Sonatype.repoServer.AbstractRepoP

//rec is grid store record
viewRepo : function(rec){

if ( rec.get('repoType') == 'proxy' ) {
this.browseSelector.enable();
}
else {
this.browseLocalMenuItem.setChecked( true );
this.browseSelector.disable();
}

//change in behavior. Always load a new detail view until we work out all the cache
// and browse dependencies

Expand Down

0 comments on commit 6508a7d

Please sign in to comment.