| OLD | NEW |
| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> | 101 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> |
| 102 <iron-icon icon="icons:help" class="paper-grey"></iron-icon> | 102 <iron-icon icon="icons:help" class="paper-grey"></iron-icon> |
| 103 </template> | 103 </template> |
| 104 </template> | 104 </template> |
| 105 <template is="dom-if" if="[[auth_headers]]"> | 105 <template is="dom-if" if="[[auth_headers]]"> |
| 106 <paper-icon-button id="force-refresh" | 106 <paper-icon-button id="force-refresh" |
| 107 icon="icons:refresh" | 107 icon="icons:refresh" |
| 108 on-tap="_forceRefresh"> | 108 on-tap="_forceRefresh"> |
| 109 </paper-icon-button> | 109 </paper-icon-button> |
| 110 <paper-tooltip for="force-refresh" offset="0"> | 110 <paper-tooltip for="force-refresh" offset="0"> |
| 111 Force the config refresh. | 111 Re-import the config-set from the repository. |
| 112 </paper-tooltip> | 112 </paper-tooltip> |
| 113 </template> | 113 </template> |
| 114 </div> | 114 </div> |
| 115 <div class="category"> | 115 <div class="category"> |
| 116 <p>[[_formatCategory(category)]]</p> | 116 <p>[[_formatCategory(category)]]</p> |
| 117 <template is="dom-if" if="[[_not(isLoading)]]"> | 117 <template is="dom-if" if="[[_not(isLoading)]]"> |
| 118 <template is="dom-if" if="[[lastImportAttempt]]"> | 118 <template is="dom-if" if="[[lastImportAttempt]]"> |
| 119 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> | 119 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> |
| 120 Last import attempt failed: [[lastImportAttempt.message]] | 120 Last import attempt failed: [[lastImportAttempt.message]] |
| 121 </template> | 121 </template> |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 this.errorMessage = "Internal server error."; | 286 this.errorMessage = "Internal server error."; |
| 287 } else { | 287 } else { |
| 288 this.errorMessage = "Error occured. Try again later."; | 288 this.errorMessage = "Error occured. Try again later."; |
| 289 } | 289 } |
| 290 this.fire('fetchError'); | 290 this.fire('fetchError'); |
| 291 } | 291 } |
| 292 | 292 |
| 293 }); | 293 }); |
| 294 </script> | 294 </script> |
| 295 </dom-module> | 295 </dom-module> |
| OLD | NEW |