Skip to content

Commit

Permalink
Merge pull request #192 from mrc-ide/mrc-4602
Browse files Browse the repository at this point in the history
mrc-4602 Do not show Graph Settings when Multi-sensitivity tab is open
  • Loading branch information
EmmaLRussell authored Sep 21, 2023
2 parents 2e02e29 + 71b07be commit d4b09e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/static/src/app/components/options/OptionsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<vertical-collapse v-if="fitTabIsOpen" title="Optimisation" collapse-id="optimisation">
<optimisation-options></optimisation-options>
</vertical-collapse>
<vertical-collapse title="Graph Settings" collapse-id="graph-settings">
<vertical-collapse v-if="!multiSensitivityOpen" title="Graph Settings" collapse-id="graph-settings">
<graph-settings></graph-settings>
</vertical-collapse>
<vertical-collapse v-if="!isStochastic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { RunMutation } from "../../../../src/app/store/run/mutations";
import GraphSettings from "../../../../src/app/components/options/GraphSettings.vue";
import ParameterSets from "../../../../src/app/components/options/ParameterSets.vue";
import { getters as runGetters } from "../../../../src/app/store/run/getters";
import fitApp from "../../../../src/app/components/fit/FitApp.vue";
import AdvancedSettings from "../../../../src/app/components/options/AdvancedSettings.vue";

describe("OptionsTab", () => {
Expand Down Expand Up @@ -299,5 +298,6 @@ describe("OptionsTab", () => {
}
});
expect(wrapper.findComponent(SensitivityOptions).exists()).toBe(true);
expect(wrapper.findComponent(GraphSettings).exists()).toBe(false);
});
});

0 comments on commit d4b09e3

Please sign in to comment.