Web: different JS style for defining app data
Just a readability improvement. No functional changes.
This commit is contained in:
parent
7bde1e243a
commit
4553be4d6c
@ -37,8 +37,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
ApiSpinner, JobsTable, JobDetails, TaskDetails, UpdateListener,
|
ApiSpinner, JobsTable, JobDetails, TaskDetails, UpdateListener,
|
||||||
},
|
},
|
||||||
data: () => {
|
data: () => ({
|
||||||
return {
|
|
||||||
apiClient: new API.ApiClient(urls.api()),
|
apiClient: new API.ApiClient(urls.api()),
|
||||||
websocketURL: urls.ws(),
|
websocketURL: urls.ws(),
|
||||||
messages: [],
|
messages: [],
|
||||||
@ -48,8 +47,7 @@ export default {
|
|||||||
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
|
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
|
||||||
|
|
||||||
numRunningQueries: 0,
|
numRunningQueries: 0,
|
||||||
};
|
}),
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.fetchManagerInfo();
|
this.fetchManagerInfo();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user