mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Minor refactoring/simplification of vuex usage.
This commit is contained in:
@@ -28,9 +28,8 @@ export default {
|
||||
this.fetchJobDestinationParams(this.jobId);
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(["getJobDestinationParams"]),
|
||||
jobDestinationParams: function () {
|
||||
return this.getJobDestinationParams(this.jobId);
|
||||
return this.$store.getters.jobDestinationParams(this.jobId);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { getAppRoot } from "onload/loadConfig";
|
||||
import axios from "axios";
|
||||
|
||||
const getters = {
|
||||
getJobDestinationParams: (state) => (jobId) => {
|
||||
jobDestinationParams: (state) => (jobId) => {
|
||||
return state.jobDestinationParametersByJobId[jobId] || [];
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user