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

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

Issue 2987043002: config_service: changing URL manually now reloads list of files (Closed)
Patch Set: Created 3 years, 4 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 | 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="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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 name: { 205 name: {
206 type: String 206 type: String
207 }, 207 },
208 208
209 refreshMessage: { 209 refreshMessage: {
210 type: String, 210 type: String,
211 value: null 211 value: null
212 }, 212 },
213 213
214 route: {
215 type: Object,
216 observer: '_routeChanged'
217 },
218
214 errorMessage: { 219 errorMessage: {
215 type: String, 220 type: String,
216 value: null 221 value: null
217 } 222 }
218 }, 223 },
219 224
220 _forceRefresh: function() { 225 _forceRefresh: function() {
221 this.refreshMessage = null; 226 this.refreshMessage = null;
222 this.$.refreshConfigs.generateRequest(); 227 this.$.refreshConfigs.generateRequest();
223 this.isRefreshing = true; 228 this.isRefreshing = true;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 this.errorMessage = "Access denied, " + this.profile.email + 290 this.errorMessage = "Access denied, " + this.profile.email +
286 " is not authorized to access this config set." + 291 " is not authorized to access this config set." +
287 " Request access or sign in as a different user."; 292 " Request access or sign in as a different user.";
288 } 293 }
289 } else if (500 <= error && error < 600) { 294 } else if (500 <= error && error < 600) {
290 this.errorMessage = "Internal server error."; 295 this.errorMessage = "Internal server error.";
291 } else { 296 } else {
292 this.errorMessage = "Error occured. Try again later."; 297 this.errorMessage = "Error occured. Try again later.";
293 } 298 }
294 this.fire('fetchError'); 299 this.fire('fetchError');
300 },
301
302 _routeChanged: function() {
303 this.isLoading = true;
304 this.$.requestConfigs.generateRequest();
295 } 305 }
296 306
297 }); 307 });
298 </script> 308 </script>
299 </dom-module> 309 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698