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

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

Issue 2987453002: config_service: fix testing (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | appengine/config_service/ui/src/config-ui/front-page.html » ('j') | 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="config-file-card.html"> 7 <link rel="import" href="config-file-card.html">
8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html"> 8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html">
9 <link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> 9 <link rel="import" href="../../bower_components/iron-icons/iron-icons.html">
10 <link rel="import" href="../../bower_components/paper-item/paper-item.html"> 10 <link rel="import" href="../../bower_components/paper-item/paper-item.html">
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 }, 223 },
224 224
225 _formatCategory: function(category) { 225 _formatCategory: function(category) {
226 if (category === "projects") return "Project"; 226 if (category === "projects") return "Project";
227 if (category === "services") return "Service"; 227 if (category === "services") return "Service";
228 }, 228 },
229 229
230 _onCompleteRefresh: function() { 230 _onCompleteRefresh: function() {
231 this.isRefreshing = false; 231 this.isRefreshing = false;
232 this.refreshMessage = "Refresh successful."; 232 this.refreshMessage = "Refresh successful.";
233 this.fire('refreshComplete');
233 }, 234 },
234 235
235 _not: function(b) { 236 _not: function(b) {
236 return !b; 237 return !b;
237 }, 238 },
238 239
239 _onGotConfigFiles: function(event) { 240 _onGotConfigFiles: function(event) {
240 this.files = event.detail.response.config_sets[0].files || []; 241 this.files = event.detail.response.config_sets[0].files || [];
241 this.location = event.detail.response.config_sets[0].location; 242 this.location = event.detail.response.config_sets[0].location;
242 this.lastImportAttempt = 243 this.lastImportAttempt =
243 event.detail.response.config_sets[0].last_import_attempt || null; 244 event.detail.response.config_sets[0].last_import_attempt || null;
244 this.isLoading = false; 245 this.isLoading = false;
246 this.fire('processedConfigFiles');
245 }, 247 },
246 248
247 _onRefreshError: function() { 249 _onRefreshError: function() {
248 this.isRefreshing = false; 250 this.isRefreshing = false;
249 this.refreshMessage = "Error: Files could not be refreshed."; 251 this.refreshMessage = "Error: Files could not be refreshed.";
252 this.fire('refreshError');
250 } 253 }
251 }); 254 });
252 </script> 255 </script>
253 </dom-module> 256 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | appengine/config_service/ui/src/config-ui/front-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698