Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: web/inc/rpcexplorer/rpc-explorer.html

Issue 2834373003: rpcexplorer: change rootPath property (Closed)
Patch Set: .keep Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « web/apps/rpcexplorer/index.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/inc/rpcexplorer/rpc-explorer.html
diff --git a/web/inc/rpcexplorer/rpc-explorer.html b/web/inc/rpcexplorer/rpc-explorer.html
index 2123f07d9c237309333a43f1a36b0b29f93b1808..1b461041556c9aad10c32115534643d9b5890c9f 100644
--- a/web/inc/rpcexplorer/rpc-explorer.html
+++ b/web/inc/rpcexplorer/rpc-explorer.html
@@ -64,7 +64,7 @@
<span class="navbar-brand">
<span id="progress-spinner" class="not-spinning">
<a is="html5-history-anchor" pushstate popstate
- href="[[rootPath]]">RPC Explorer</a>
+ href="[[explorerRootPath]]">RPC Explorer</a>
</span>
</span>
</div>
@@ -82,15 +82,15 @@
<ol class="breadcrumb">
<li>
<a is="html5-history-anchor" pushstate popstate
- href="[[rootPath]]/services/">Home</a>
+ href="[[explorerRootPath]]/services/">Home</a>
</li>
<li hidden="[[!service]]">
<a is="html5-history-anchor" pushstate popstate
- href="[[rootPath]]/services/[[service]]/">[[service]]</a>
+ href="[[explorerRootPath]]/services/[[service]]/">[[service]]</a>
</li>
<li hidden="[[!method]]">
<a is="html5-history-anchor" pushstate popstate
- href="[[rootPath]]/services/[[service]]/[[method]]">
+ href="[[explorerRootPath]]/services/[[service]]/[[method]]">
[[method]]
</a>
</li>
@@ -127,10 +127,10 @@
is: 'rpc-explorer',
properties: {
- rootPath: {
+ explorerRootPath: {
type: String,
value: '',
- observer: '_onRootPathChanged'
+ observer: '_onExplorerRootPathChanged'
},
clientId: String,
@@ -146,11 +146,11 @@
}
},
- _onRootPathChanged: function (newVal) {
+ _onExplorerRootPathChanged: function (newVal) {
// The app-router element does not like data-binding in its attributes
// so we update their values manually.
- var rootPath = newVal || '',
- servicesPath = rootPath + '/services/',
+ var explorerRootPath = newVal || '',
+ servicesPath = explorerRootPath + '/services/',
servicePath = servicesPath + ':service/',
methodPath = servicePath + ':method';
this.$.servicesRoute.setAttribute('path', servicesPath);
« no previous file with comments | « web/apps/rpcexplorer/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698