refactor: UserIndicator use vue component directly

This commit is contained in:
Mazzella, Jesse D. (ARC-TI)[KBR Wyle Services, LLC] 2024-01-24 13:12:27 -08:00
parent 114864429a
commit 8040d1d5be

View File

@ -20,32 +20,14 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
import mount from 'utils/mount';
import UserIndicator from './components/UserIndicator.vue';
export default function UserIndicatorPlugin() {
function addIndicator(openmct) {
const { vNode, destroy } = mount(
{
components: {
UserIndicator
},
provide: {
openmct: openmct
},
template: '<UserIndicator />'
},
{
app: openmct.app
}
);
openmct.indicators.add({
key: 'user-indicator',
element: vNode.el,
priority: openmct.priority.HIGH,
destroy: destroy
vueComponent: UserIndicator,
priority: openmct.priority.HIGH
});
}