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

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: Include a bug number for making the element call on-response handler automatically. 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 active="{{frontPageActive}}"></app-route> 86 active="{{frontPageActive}}"></app-route>
87 87
88 <template is="dom-if" if="[[frontPageActive]]"> 88 <template is="dom-if" if="[[frontPageActive]]">
89 <front-page auth_headers="{{auth_headers}}"></front-page> 89 <front-page auth_headers="{{auth_headers}}"></front-page>
90 </template> 90 </template>
91 91
92 <template is="dom-if" if="[[serviceActive]]" restamp="true"> 92 <template is="dom-if" if="[[serviceActive]]" restamp="true">
93 <config-set category="services" 93 <config-set category="services"
94 name="{{serviceData.serviceName}}" 94 name="{{serviceData.serviceName}}"
95 route="{{serviceTail}}" 95 route="{{serviceTail}}"
96 auth_headers="{{auth_headers}}"></config-set> 96 auth_headers="{{auth_headers}}"
97 front-page-is-active="[[frontPageActive]]"></config-set>
97 </template> 98 </template>
98 99
99 <template is="dom-if" if="[[projectActive]]" restamp="true"> 100 <template is="dom-if" if="[[projectActive]]" restamp="true">
100 <config-set category="projects" 101 <config-set category="projects"
101 name="{{projectData.projectName}}" 102 name="{{projectData.projectName}}"
102 route="{{projectTail}}" 103 route="{{projectTail}}"
103 auth_headers="{{auth_headers}}"></config-set> 104 auth_headers="{{auth_headers}}"
105 front-page-is-active="[[frontPageActive]]"></config-set>
104 </template> 106 </template>
105 107
106 </template> 108 </template>
107 109
108 <script> 110 <script>
109 Polymer({ 111 Polymer({
110 is: 'config-ui', 112 is: 'config-ui',
111 113
112 properties: { 114 properties: {
113 client_id: { 115 client_id: {
114 type: String, 116 type: String,
115 value: null 117 value: null
116 } 118 }
117 }, 119 },
118 120
119 ready: function() { 121 ready: function() {
120 this.async(function() { 122 this.async(function() {
121 // If the path is blank, redirect to / 123 // If the path is blank, redirect to /
122 if (!this.route.path) { 124 if (!this.route.path) {
123 this.set('route.path', '/'); 125 this.set('route.path', '/');
124 } 126 }
125 }); 127 });
126 }, 128 },
127 129
128 }); 130 });
129 </script> 131 </script>
130 </dom-module> 132 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698