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

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

Issue 2959833002: config_service: add last import validation and tests (Closed)
Patch Set: Add test files. Created 3 years, 5 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
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}}"
75 </div> 75 front-page-is-active="{{frontPageActive}}"></config-set>
76 </div>
76 77
77 <div hidden$="[[!projectActive]]"> 78 <div hidden$="[[!projectActive]]">
78 <config-set category="projects" 79 <config-set category="projects"
79 config-set-name="{{projectData.projectName}}" 80 name="{{projectData.projectName}}"
80 route="{{projectTail}}"></config-set> 81 route="{{projectTail}}"
81 </div> 82 front-page-is-active="{{frontPageActive}}"></config-set>
83 </div>
82 84
83 </template> 85 </template>
84 86
85 <script> 87 <script>
86 Polymer({ 88 Polymer({
87 is: 'config-ui', 89 is: 'config-ui',
88 90
89 ready: function() { 91 ready: function() {
90 this.async(function() { 92 this.async(function() {
91 // If the path is blank, redirect to / 93 // If the path is blank, redirect to /
92 if (!this.route.path) { 94 if (!this.route.path) {
93 this.set('route.path', '/'); 95 this.set('route.path', '/');
94 } 96 }
95 }); 97 });
96 }, 98 },
97 99
98 }); 100 });
99 </script> 101 </script>
100 </dom-module> 102 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698