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

Side by Side Diff: appengine/config_service/ui/src/config-ui/config-ui.html

Issue 2953463002: config_service: integrated working config set page with routing (Closed)
Patch Set: Nit: fixed 80+ char line Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-set.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2017 The LUCI Authors. All rights reserved. 2 Copyright 2017 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="../../bower_components/polymer/polymer.html"> 7 <link rel="import" href="../../bower_components/polymer/polymer.html">
8 <link rel="import" href="../../bower_components/app-layout/app-layout.html"> 8 <link rel="import" href="../../bower_components/app-layout/app-layout.html">
9 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht ml"> 9 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht ml">
10 <link rel="import" href="../../bower_components/app-route/app-location.html"> 10 <link rel="import" href="../../bower_components/app-route/app-location.html">
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 <app-route route="{{route}}" 63 <app-route route="{{route}}"
64 pattern="/" 64 pattern="/"
65 active="{{frontPageActive}}"></app-route> 65 active="{{frontPageActive}}"></app-route>
66 66
67 <div hidden$="[[!frontPageActive]]"> 67 <div hidden$="[[!frontPageActive]]">
68 <front-page></front-page> 68 <front-page></front-page>
69 </div> 69 </div>
70 70
71 <div hidden$="[[!serviceActive]]"> 71 <div hidden$="[[!serviceActive]]">
72 <config-set category="services" 72 <config-set category="services"
73 config-set-name="{{serviceData.serviceName}}" 73 name="{{serviceData.serviceName}}"
74 route="{{serviceTail}}"></config-set> 74 route="{{serviceTail}}"></config-set>
75 </div> 75 </div>
76 76
77 <div hidden$="[[!projectActive]]"> 77 <div hidden$="[[!projectActive]]">
78 <config-set category="projects" 78 <config-set category="projects"
79 config-set-name="{{projectData.projectName}}" 79 name="{{projectData.projectName}}"
80 route="{{projectTail}}"></config-set> 80 route="{{projectTail}}"></config-set>
81 </div> 81 </div>
82 82
83 </template> 83 </template>
84 84
85 <script> 85 <script>
86 Polymer({ 86 Polymer({
87 is: 'config-ui', 87 is: 'config-ui',
88 88
89 ready: function() { 89 ready: function() {
90 this.async(function() { 90 this.async(function() {
91 // If the path is blank, redirect to / 91 // If the path is blank, redirect to /
92 if (!this.route.path) { 92 if (!this.route.path) {
93 this.set('route.path', '/'); 93 this.set('route.path', '/');
94 } 94 }
95 }); 95 });
96 }, 96 },
97 97
98 }); 98 });
99 </script> 99 </script>
100 </dom-module> 100 </dom-module>
OLDNEW
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-set.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698