Web: reduce console logs a bit

This commit is contained in:
Sybren A. Stüvel 2022-04-12 16:11:52 +02:00
parent 77cc0f36e6
commit 6161853136
2 changed files with 0 additions and 4 deletions

View File

@ -48,7 +48,6 @@ export default {
methods: { methods: {
// UI component event handlers: // UI component event handlers:
onActiveJobChanged(jobSummary) { onActiveJobChanged(jobSummary) {
console.log("Selected:", jobSummary);
this.activeJobSummary = jobSummary; this.activeJobSummary = jobSummary;
}, },
@ -83,7 +82,6 @@ export default {
fetchManagerInfo() { fetchManagerInfo() {
const metaAPI = new API.MetaApi(this.apiClient); const metaAPI = new API.MetaApi(this.apiClient);
metaAPI.getVersion().then((version) => { metaAPI.getVersion().then((version) => {
console.log("version:", version);
this.flamencoName = version.name; this.flamencoName = version.name;
this.flamencoVersion = version.version; this.flamencoVersion = version.version;
}) })

View File

@ -87,14 +87,12 @@ export default {
.then(this.sortData); .then(this.sortData);
}, },
processNewJob(jobUpdate) { processNewJob(jobUpdate) {
console.log("processNewJob:", jobUpdate);
// The update doesn't have all the info we need, so just fetch the job via // The update doesn't have all the info we need, so just fetch the job via
// an API call. If this is ever changed, and the jobUpdate does have // an API call. If this is ever changed, and the jobUpdate does have
// everything needed for this table, JobDetails.vue also needs to be // everything needed for this table, JobDetails.vue also needs to be
// adjusted for this. // adjusted for this.
const jobsApi = new JobsApi(this.apiClient); const jobsApi = new JobsApi(this.apiClient);
jobsApi.fetchJob(jobUpdate.id).then((job) => { jobsApi.fetchJob(jobUpdate.id).then((job) => {
console.log('API called successfully. Returned data: ' + job);
console.log("Fetched job:", JSON.parse(JSON.stringify(job))); console.log("Fetched job:", JSON.parse(JSON.stringify(job)));
this.tabulator.addData([job]) this.tabulator.addData([job])
.then(this.sortData); .then(this.sortData);