Web: different JS style for defining app data

Just a readability improvement.

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2022-04-19 12:49:01 +02:00
parent 7bde1e243a
commit 4553be4d6c

View File

@ -37,19 +37,17 @@ export default {
components: {
ApiSpinner, JobsTable, JobDetails, TaskDetails, UpdateListener,
},
data: () => {
return {
apiClient: new API.ApiClient(urls.api()),
websocketURL: urls.ws(),
messages: [],
data: () => ({
apiClient: new API.ApiClient(urls.api()),
websocketURL: urls.ws(),
messages: [],
selectedJob: {},
flamencoName: DEFAULT_FLAMENCO_NAME,
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
selectedJob: {},
flamencoName: DEFAULT_FLAMENCO_NAME,
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
numRunningQueries: 0,
};
},
numRunningQueries: 0,
}),
mounted() {
this.fetchManagerInfo();
},