mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* Basic components for HTTP settings migration WIP * Add secureJsonFields to DataSourceSettings * Introduce datasource-http-settings-next directive for backward compatibility * fix lint * renames * rename fix * TagsInput component * move tags from app to grafana/ui * implement tagsinput on datasourcesettings * capitalize * new file for react directive for testing * some layout touch ups * FormField story * Minor touch ups * add url validation * using prevent default to prevent updating datasource when adding tag * using Stylefactory and fix tslint issue on MouseEvent * only show tlsauthsettings if tls or ca cert * fix url input length * fix for showAccessOptions * Implemented CertTextArea, removed commented code * removed commented / not used code * Rename and add more elements to Certification component * fixing newSecureJsonData * spelling * Fix issue with checkboxes being undefined * Removed old partials and minor fix * removed unused props from story
22 lines
600 B
TypeScript
22 lines
600 B
TypeScript
import { coreModule } from 'app/core/core';
|
|
|
|
coreModule.directive('datasourceHttpSettings', () => {
|
|
return {
|
|
scope: {
|
|
current: '=',
|
|
suggestUrl: '@',
|
|
noDirectAccess: '@',
|
|
},
|
|
templateUrl: 'public/app/features/datasources/partials/http_settings_next.html',
|
|
link: {
|
|
pre: ($scope: any) => {
|
|
// do not show access option if direct access is disabled
|
|
$scope.showAccessOption = $scope.noDirectAccess !== 'true';
|
|
$scope.onChange = (datasourceSetting: any) => {
|
|
$scope.current = datasourceSetting;
|
|
};
|
|
},
|
|
},
|
|
};
|
|
});
|