Skip to content

Commit

Permalink
fix(analysis): proper button update on run status update
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Sep 25, 2024
1 parent a1f095b commit eccabba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/analysis/AnalysisControlButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ const deleteButtonActiveStates = [
const buttonStatuses = ref(setButtonStatuses(props.analysisRunStatus));
// TODO: possibly remove when manual pod status checks are removed
watch(props, () => {
buttonStatuses.value = setButtonStatuses(props.analysisRunStatus);
});
watch(
() => props.analysisRunStatus,
() => {
buttonStatuses.value = setButtonStatuses(props.analysisRunStatus);
},
);
function setButtonStatuses(podStatus: string) {
emit("newRunStatus", props.analysisNodeId, podStatus);
Expand Down

0 comments on commit eccabba

Please sign in to comment.