Gerrit.Nav.setup() now takes a weblinks generator function as a third parameter. Here's the function signature: ``` js Gerrit.Nav.setup(navigate, generateUrl, generateWeblinks) ``` Weblinks generator function takes single payload parameter with `type` property that determines which part of the UI is the consumer of the weblinks. `type` property can be one of `file`, `change`, or `patchset`. For `file` type, payload will also contain string properties: `repo`, `commit`, `file`. For `pachset` type, payload will also contain string properties: `repo`, `commit`. For `change` type, payload will also contain string properties: `repo`, `commit`. If server provides weblinks, those will be passed as `options.weblinks` property on the main payload object. Change-Id: I0d9de3a295435304e2b6aad551112440075cf098
		
			
				
	
	
		
			22 lines
		
	
	
		
			761 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			761 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<!--
 | 
						|
Copyright (C) 2017 The Android Open Source Project
 | 
						|
 | 
						|
Licensed under the Apache License, Version 2.0 (the "License");
 | 
						|
you may not use this file except in compliance with the License.
 | 
						|
You may obtain a copy of the License at
 | 
						|
 | 
						|
http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
 | 
						|
Unless required by applicable law or agreed to in writing, software
 | 
						|
distributed under the License is distributed on an "AS IS" BASIS,
 | 
						|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
						|
See the License for the specific language governing permissions and
 | 
						|
limitations under the License.
 | 
						|
-->
 | 
						|
 | 
						|
<link rel="import" href="../elements/core/gr-navigation/gr-navigation.html">
 | 
						|
<script>
 | 
						|
  Gerrit.Nav.setup(url => { /* noop */ }, params => '', () => []);
 | 
						|
</script>
 |