mirror of
https://github.com/nasa/openmct.git
synced 2025-05-03 01:02:52 +00:00
remove unnecessary container
This commit is contained in:
parent
40b7117987
commit
82e5bf2325
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="abs l-flex-col ng-scope" ref="mountPoint">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -18,7 +16,7 @@ export default {
|
|||||||
clear() {
|
clear() {
|
||||||
if (this.currentView) {
|
if (this.currentView) {
|
||||||
this.currentView.destroy();
|
this.currentView.destroy();
|
||||||
this.$refs.mountPoint.innerHTML = '';
|
this.$el.innerHTML = '';
|
||||||
}
|
}
|
||||||
delete this.viewContainer;
|
delete this.viewContainer;
|
||||||
delete this.currentView;
|
delete this.currentView;
|
||||||
@ -27,7 +25,7 @@ export default {
|
|||||||
this.clear();
|
this.clear();
|
||||||
this.currentObject = object;
|
this.currentObject = object;
|
||||||
this.viewContainer = document.createElement('div');
|
this.viewContainer = document.createElement('div');
|
||||||
this.$refs.mountPoint.append(this.viewContainer);
|
this.$el.append(this.viewContainer);
|
||||||
this.currentView = provider.view(object);
|
this.currentView = provider.view(object);
|
||||||
this.currentView.show(this.viewContainer);
|
this.currentView.show(this.viewContainer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user