diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/app.component.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/app.component.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/app.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/app.component.ts new file mode 100644 index 000000000..5f483cc94 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/app.component.ts @@ -0,0 +1,18 @@ +import { Component } from '@angular/core'; + +import { NgbPopoverConfig, NgbTooltipConfig } from '@ng-bootstrap/ng-bootstrap'; + +@Component({ + selector: 'cd-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.scss'] +}) +export class AppComponent { + constructor(popoverConfig: NgbPopoverConfig, tooltipConfig: NgbTooltipConfig) { + popoverConfig.autoClose = 'outside'; + popoverConfig.container = 'body'; + popoverConfig.placement = 'bottom'; + + tooltipConfig.container = 'body'; + } +} |