mirror of
https://github.com/nasa/openmct.git
synced 2025-03-21 03:25:44 +00:00
Debounce status summary (#5448)
Co-authored-by: John Hill <john.c.hill@nasa.gov>
This commit is contained in:
parent
e08ab8ef24
commit
fefa46ce7e
@ -78,6 +78,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
inject: ['openmct', 'indicator', 'configuration'],
|
||||
@ -118,6 +119,9 @@ export default {
|
||||
this.openmct.user.status.off('statusChange', this.fetchStatusSummary);
|
||||
this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion);
|
||||
},
|
||||
created() {
|
||||
this.fetchStatusSummary = _.debounce(this.fetchStatusSummary);
|
||||
},
|
||||
methods: {
|
||||
async fetchCurrentPoll() {
|
||||
const pollQuestion = await this.openmct.user.status.getPollQuestion();
|
||||
|
Loading…
x
Reference in New Issue
Block a user