Web: document cohesion of JobsTable and JobDetails components
This commit is contained in:
parent
316ba6953b
commit
48acf55d6b
@ -72,7 +72,10 @@ export default {
|
|||||||
jobSummary(newSummary, oldSummary) {
|
jobSummary(newSummary, oldSummary) {
|
||||||
console.log("Updating job details:", JSON.parse(JSON.stringify(newSummary)));
|
console.log("Updating job details:", JSON.parse(JSON.stringify(newSummary)));
|
||||||
this.jobData = newSummary;
|
this.jobData = newSummary;
|
||||||
// TODO: Fetch the rest of the job.
|
// TODO later: Fetch the rest of the job. This isn't necessary now,
|
||||||
|
// because the jobs table already performs the fetch and the "summary" is
|
||||||
|
// actually the entire job. If this changes, this is the place to trigger
|
||||||
|
// an actual fetch.
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -88,7 +88,10 @@ export default {
|
|||||||
},
|
},
|
||||||
processNewJob(jobUpdate) {
|
processNewJob(jobUpdate) {
|
||||||
console.log("processNewJob:", jobUpdate);
|
console.log("processNewJob:", jobUpdate);
|
||||||
// The update doesn't have all the info we need, so just fetch the job via an API call.
|
// 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
|
||||||
|
// everything needed for this table, JobDetails.vue also needs to be
|
||||||
|
// 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('API called successfully. Returned data: ' + job);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user