| OLD | NEW |
| 1 // Copyright 2014 The LUCI Authors. All rights reserved. | 1 // Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed by the Apache v2.0 license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 var config_page = (function() { | 5 var config_page = (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 var exports = {}; | 8 var exports = {}; |
| 9 | 9 |
| 10 | 10 |
| 11 // Fetches the importer config from the server. | 11 // Fetches the importer config from the server. |
| 12 var readImporterConfig = function() { | 12 var readImporterConfig = function() { |
| 13 return api.call('GET', '/auth_service/api/v1/importer/config'); | 13 return api.call('GET', '/auth_service/api/v1/importer/config'); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 $('#import-config textarea[name="config"]').val(response.data.config); | 48 $('#import-config textarea[name="config"]').val(response.data.config); |
| 49 common.presentContent(); | 49 common.presentContent(); |
| 50 }, function(error) { | 50 }, function(error) { |
| 51 common.presentError(error.text); | 51 common.presentError(error.text); |
| 52 }); | 52 }); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 | 55 |
| 56 return exports; | 56 return exports; |
| 57 }()); | 57 }()); |
| OLD | NEW |