mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
dbcefb70f6
* Angular: More isolation and removing of unused components * Moved some more and fixed a test
23 lines
640 B
TypeScript
23 lines
640 B
TypeScript
import { coreModule } from 'app/angular/core_module';
|
|
|
|
coreModule.directive('datasourceHttpSettings', () => {
|
|
return {
|
|
scope: {
|
|
current: '=',
|
|
suggestUrl: '@',
|
|
noDirectAccess: '@',
|
|
showForwardOAuthIdentityOption: '@',
|
|
},
|
|
templateUrl: 'public/app/angular/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;
|
|
};
|
|
},
|
|
},
|
|
};
|
|
});
|