mirror of https://github.com/rancher/ui.git
18 lines
539 B
JavaScript
18 lines
539 B
JavaScript
import { computed } from '@ember/object';
|
|
import { oneWay } from '@ember/object/computed';
|
|
import Component from '@ember/component';
|
|
import Tooltip from 'shared/mixins/tooltip';
|
|
import layout from './template';
|
|
|
|
export default Component.extend(Tooltip, {
|
|
layout,
|
|
needs: ['application'],
|
|
display: null,
|
|
|
|
model: oneWay('tooltipService.tooltipOpts.model'),
|
|
selectPartial: computed('tooltipService.tooltipOpts.template', function() {
|
|
return this.get('tooltipService.tooltipOpts.template') || 'tooltip-basic';
|
|
})
|
|
|
|
});
|