mirror of
https://github.com/nasa/openmct.git
synced 2025-07-03 13:35:04 +00:00
Compare commits
6 Commits
vue-hack
...
fix-missin
Author | SHA1 | Date | |
---|---|---|---|
84c2980040 | |||
8cc946d249 | |||
4a7ff3f797 | |||
a6e8f76b55 | |||
da1fa0b095 | |||
cc1a5ef1dd |
@ -288,8 +288,6 @@ define([
|
|||||||
this.install(this.plugins.ObjectInterceptors());
|
this.install(this.plugins.ObjectInterceptors());
|
||||||
this.install(this.plugins.NonEditableFolder());
|
this.install(this.plugins.NonEditableFolder());
|
||||||
this.install(this.plugins.DeviceClassifier());
|
this.install(this.plugins.DeviceClassifier());
|
||||||
|
|
||||||
this._isVue = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MCT.prototype = Object.create(EventEmitter.prototype);
|
MCT.prototype = Object.create(EventEmitter.prototype);
|
||||||
|
@ -180,13 +180,9 @@ export default {
|
|||||||
this.openmct.notifications.alert(message);
|
this.openmct.notifications.alert(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.openmct.editor.isEditing()) {
|
|
||||||
this.previewEmbed();
|
|
||||||
} else {
|
|
||||||
const relativeHash = hash.slice(hash.indexOf('#'));
|
const relativeHash = hash.slice(hash.indexOf('#'));
|
||||||
const url = new URL(relativeHash, `${location.protocol}//${location.host}${location.pathname}`);
|
const url = new URL(relativeHash, `${location.protocol}//${location.host}${location.pathname}`);
|
||||||
this.openmct.router.navigate(url.hash);
|
this.openmct.router.navigate(url.hash);
|
||||||
}
|
|
||||||
},
|
},
|
||||||
formatTime(unixTime, timeFormat) {
|
formatTime(unixTime, timeFormat) {
|
||||||
return Moment.utc(unixTime).format(timeFormat);
|
return Moment.utc(unixTime).format(timeFormat);
|
||||||
|
@ -21,9 +21,13 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="u-contents">
|
<div class="u-contents">
|
||||||
<div v-if="canEdit"
|
<ul v-if="canEdit"
|
||||||
class="grid-row"
|
class="l-inspector-part"
|
||||||
>
|
>
|
||||||
|
<h2 v-if="heading"
|
||||||
|
:title="heading"
|
||||||
|
>{{ heading }}</h2>
|
||||||
|
<li class="grid-row">
|
||||||
<div class="grid-cell label"
|
<div class="grid-cell label"
|
||||||
:title="editTitle"
|
:title="editTitle"
|
||||||
>{{ shortLabel }}</div>
|
>{{ shortLabel }}</div>
|
||||||
@ -56,10 +60,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
<div v-else
|
</ul>
|
||||||
class="grid-row"
|
<ul v-else
|
||||||
|
class="l-inspector-part"
|
||||||
>
|
>
|
||||||
|
<h2 v-if="heading"
|
||||||
|
:title="heading"
|
||||||
|
>{{ heading }}</h2>
|
||||||
|
<li class="grid-row">
|
||||||
<div class="grid-cell label"
|
<div class="grid-cell label"
|
||||||
:title="viewTitle"
|
:title="viewTitle"
|
||||||
>{{ shortLabel }}</div>
|
>{{ shortLabel }}</div>
|
||||||
@ -71,7 +80,8 @@
|
|||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -104,6 +114,12 @@ export default {
|
|||||||
default() {
|
default() {
|
||||||
return 'Color';
|
return 'Color';
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
heading: {
|
||||||
|
type: String,
|
||||||
|
default() {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -107,7 +107,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.openmct.objects.mutate(
|
this.openmct.objects.mutate(
|
||||||
this.domainObject,
|
this.domainObject,
|
||||||
`configuration.barStyles[${key}]`,
|
`configuration.barStyles[${this.key}]`,
|
||||||
this.domainObject.configuration.barStyles[key]
|
this.domainObject.configuration.barStyles[key]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -33,9 +33,9 @@
|
|||||||
</li>
|
</li>
|
||||||
<ColorSwatch v-if="expanded"
|
<ColorSwatch v-if="expanded"
|
||||||
:current-color="currentColor"
|
:current-color="currentColor"
|
||||||
title="Manually set the color for this bar graph series."
|
title="Manually set the color for this bar graph."
|
||||||
edit-title="Manually set the color for this bar graph series"
|
edit-title="Manually set the color for this bar graph"
|
||||||
view-title="The color for this bar graph series."
|
view-title="The color for this bar graph."
|
||||||
short-label="Color"
|
short-label="Color"
|
||||||
class="grid-properties"
|
class="grid-properties"
|
||||||
@colorSet="setColor"
|
@colorSet="setColor"
|
||||||
|
@ -20,13 +20,15 @@
|
|||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<ul class="c-tree">
|
<div>
|
||||||
<h2 title="Display properties for this object">Bar Graph Series</h2>
|
<ul class="c-tree">
|
||||||
<bar-graph-options v-for="series in domainObject.composition"
|
<li v-for="series in domainObject.composition"
|
||||||
:key="series.key"
|
:key="series.key"
|
||||||
:item="series"
|
>
|
||||||
/>
|
<bar-graph-options :item="series" />
|
||||||
</ul>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Reference in New Issue
Block a user