mirror of https://github.com/apache/archiva.git
[MRM-1705] Feature to add custom parameters and/or headers when requesting an external repositories.
implements ui to delete extraParameters. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1402493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f10a08cc8c
commit
25ebb715bf
|
@ -888,6 +888,16 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
||||||
self.remoteRepository.modified(true);
|
self.remoteRepository.modified(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteExtraParameter=function(key){
|
||||||
|
for(var i=0;i<self.remoteRepository.extraParametersEntries().length;i++){
|
||||||
|
var entry=self.remoteRepository.extraParametersEntries()[i];
|
||||||
|
if (entry.key==key){
|
||||||
|
self.remoteRepository.extraParametersEntries.remove(entry);
|
||||||
|
self.remoteRepository.modified(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteRepositoriesViewModel=function(){
|
RemoteRepositoriesViewModel=function(){
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td data-bind="text: key"></td>
|
<td data-bind="text: key"></td>
|
||||||
<td data-bind="text: value"></td>
|
<td data-bind="text: value"></td>
|
||||||
<td><a href="#" data-bind="click: function(){ $parent.deleteExtraParameter(key)}">${$.i18n.prop('delete')}</a></td>
|
<td><a href="#" data-bind="click: function(){ deleteExtraParameter(key)}">${$.i18n.prop('delete')}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue