mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
Add linear progress bar to tables (#4204)
* Add linear progress bar to tables - Stubbed in markup; - Better CSS anim for clarity; * Indeterminate progress bar for telemetry tables - Significant refinements to use ProgressBar.vue component; - Stubbed in temp computed property for `progressLoad`; - Better animation approach for indeterminate progress; - Refined markup and CSS for `c-progress-bar`; * Indeterminate progress bar for telemetry tables - Refinements for determinate progress as shown in notification banners; - Refined look of progress bar for clarity; - Vue component now uses progressPerc === undefined instead of 'unknown'; - Animation tweaked; * Changed progress-bar v-if test - Per PR change suggestion, replace `v-if=progressLoad.progressPerc !== 100` to `v-if=loading`;
This commit is contained in:
committed by
GitHub
parent
b27317631b
commit
b315803180
@ -92,6 +92,10 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&__progress-bar {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
/******************************* WRAPPERS */
|
||||
&__body-w {
|
||||
// Wraps __body table provides scrolling
|
||||
|
@ -138,6 +138,13 @@
|
||||
class="c-telemetry-table__drop-target"
|
||||
:style="dropTargetStyle"
|
||||
></div>
|
||||
|
||||
<progress-bar
|
||||
v-if="loading"
|
||||
class="c-telemetry-table__progress-bar"
|
||||
:model="progressLoad"
|
||||
/>
|
||||
|
||||
<!-- Headers table -->
|
||||
<div
|
||||
v-show="!hideHeaders"
|
||||
@ -285,6 +292,7 @@ import CSVExporter from '../../../exporters/CSVExporter.js';
|
||||
import _ from 'lodash';
|
||||
import ToggleSwitch from '../../../ui/components/ToggleSwitch.vue';
|
||||
import SizingRow from './sizing-row.vue';
|
||||
import ProgressBar from "../../../ui/components/ProgressBar.vue";
|
||||
|
||||
const VISIBLE_ROW_COUNT = 100;
|
||||
const ROW_HEIGHT = 17;
|
||||
@ -298,7 +306,8 @@ export default {
|
||||
search,
|
||||
TableFooterIndicator,
|
||||
ToggleSwitch,
|
||||
SizingRow
|
||||
SizingRow,
|
||||
ProgressBar
|
||||
},
|
||||
inject: ['openmct', 'objectPath', 'table', 'currentView'],
|
||||
props: {
|
||||
@ -353,7 +362,7 @@ export default {
|
||||
autoScroll: true,
|
||||
sortOptions: {},
|
||||
filters: {},
|
||||
loading: false,
|
||||
loading: true,
|
||||
scrollable: undefined,
|
||||
tableEl: undefined,
|
||||
headersHolderEl: undefined,
|
||||
@ -374,6 +383,11 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
progressLoad() {
|
||||
return {
|
||||
progressPerc: undefined
|
||||
};
|
||||
},
|
||||
dropTargetStyle() {
|
||||
return {
|
||||
top: this.$refs.headersTable.offsetTop + 'px',
|
||||
|
Reference in New Issue
Block a user