Skip to content

Commit

Permalink
check role when receiving status updates
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbell committed Feb 16, 2024
1 parent bc36a93 commit 4419d1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ export default {
subscribeToRoleChange() {
this.openmct.user.on('roleChanged', this.fetchMyStatus);
},
setStatus({ status }) {
setStatus({ role, status }) {
if (role !== this.role) {
// not my role
return;
}

Check warning on line 148 in src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue

View check run for this annotation

Codecov / codecov/patch

src/plugins/operatorStatus/operatorStatus/OperatorStatus.vue#L148

Added line #L148 was not covered by tests
status = this.applyStyling(status);
this.selectedStatus = status.key;
this.indicator.iconClass(status.iconClassPoll);
Expand Down

0 comments on commit 4419d1d

Please sign in to comment.