Register Clock globally

This commit is contained in:
Khalid Adil 2023-08-03 11:54:48 -05:00
parent 1e3fcc15a5
commit 70ec6fe65b
2 changed files with 4 additions and 1 deletions

View File

@ -392,6 +392,7 @@ define([
template: '<Layout ref="layout"></Layout>' template: '<Layout ref="layout"></Layout>'
}); });
appLayout.component('Plot', openmct.components.Plot); appLayout.component('Plot', openmct.components.Plot);
appLayout.component('Clock', openmct.components.Clock);
const component = appLayout.mount(domElement); const component = appLayout.mount(domElement);
component.$nextTick(() => { component.$nextTick(() => {
this.layout = component.$refs.layout; this.layout = component.$refs.layout;

View File

@ -24,10 +24,12 @@ import ObjectView from './ObjectView.vue';
import StackedPlot from '../../plugins/plot/stackedPlot/StackedPlot.vue'; import StackedPlot from '../../plugins/plot/stackedPlot/StackedPlot.vue';
import Plot from '../../plugins/plot/Plot.vue'; import Plot from '../../plugins/plot/Plot.vue';
import WebPage from '../../plugins/webPage/components/WebPage.vue'; import WebPage from '../../plugins/webPage/components/WebPage.vue';
import Clock from '../../plugins/clock/components/Clock.vue';
export default { export default {
ObjectView, ObjectView,
StackedPlot, StackedPlot,
Plot, Plot,
WebPage WebPage,
Clock
}; };