aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-09-12 21:45:52 +0000
committerOlivier Lamy <olamy@apache.org>2012-09-12 21:45:52 +0000
commit73303ddb200665379fcdd38f01b8baa231b8d258 (patch)
treee289ca3b1e49ac13d8ff21750f473846adaf5383
parent8136dbe4d271854687b6c067333e3c821db79cec (diff)
downloadarchiva-73303ddb200665379fcdd38f01b8baa231b8d258.tar.gz
archiva-73303ddb200665379fcdd38f01b8baa231b8d258.zip
[MRM-1263] creating an m2eclipse compatible index should be an optional component.
implement ui part. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384139 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js9
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html10
2 files changed, 17 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
index 1397aee43..5a8b91c19 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
@@ -33,7 +33,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
];
ManagedRepository=function(id,name,layout,indexDirectory,location,snapshots,releases,blockRedeployments,cronExpression,
- scanned,daysOlder,retentionCount,deleteReleasedSnapshots,stageRepoNeeded,description){
+ scanned,daysOlder,retentionCount,deleteReleasedSnapshots,stageRepoNeeded,description,
+ skipPackedIndexCreation){
var self=this;
@@ -99,6 +100,10 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
this.description=ko.observable(description);
this.description.subscribe(function(newValue){self.modified(true)});
+ this.skipPackedIndexCreation=ko.observable(skipPackedIndexCreation?skipPackedIndexCreation:false);
+ this.skipPackedIndexCreation.subscribe(function(newValue){self.modified(true)});
+
+
this.getTypeLabel=function(){
for(var i=0;i<window.managedRepositoryTypes.length;i++){
if (window.managedRepositoryTypes[i].type==self.layout()){
@@ -158,7 +163,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
,data.releases,
data.blockRedeployments,data.cronExpression,
data.scanned,data.daysOlder,data.retentionCount,data.deleteReleasedSnapshots,
- data.stageRepoNeeded,data.description);
+ data.stageRepoNeeded,data.description,data.skipPackedIndexCreation);
}
mapArchivaRepositoryStatistics=function(data){
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
index 2043500e5..d79ae800b 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
@@ -279,6 +279,16 @@
data-bind="checked: managedRepository.stageRepoNeeded"/>
</div>
</div>
+ <div class="control-group">
+ <label class="control-label" for="skipPackedIndexCreation">${$.i18n.prop('skipPackedIndexCreation')}</label>
+ <div class="controls">
+ <input type="checkbox" id="skipPackedIndexCreation" name="skipPackedIndexCreation" size="5"
+ data-bind="checked: managedRepository.skipPackedIndexCreation"/>
+ </div>
+ </div>
+
+
+
</fieldset>
<button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
<button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>