-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Job Manager v3 #30
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor things, just make sure to remove all the console.log
calls, we don't need them outside of development.
src/app/jobs/components/job-add-dialog/job-add-dialog.component.html
Outdated
Show resolved
Hide resolved
<button | ||
mat-raised-button | ||
color="warn" | ||
class="box-border h-12 w-28" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
box-border
is already the default in Taliwind's preflight.
class="box-border h-12 w-28" | |
class="h-12 w-28" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdrianAlzamoraG I think you forgot about this one.
src/app/jobs/components/job-add-dialog/job-add-dialog.component.html
Outdated
Show resolved
Hide resolved
src/app/jobs/components/job-add-dialog/job-add-dialog.component.html
Outdated
Show resolved
Hide resolved
src/app/jobs/components/job-add-dialog/job-add-dialog.component.ts
Outdated
Show resolved
Hide resolved
Deploying with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I noticed is that we are keeping the form at the top of the data table, but also adding a dialog with the same form. I think the dialog looks really good, so maybe try removing all the code needed for the original form and just keeping the dialog.
handleSubmit() { | ||
console.log("handling submit..."); | ||
if (!this.jobsForm.form.valid) return; | ||
console.log("passed validation..."); | ||
const job = this.currentItem as JobOffer; | ||
if (this.isEditMode) { | ||
console.log("sending update..."); | ||
this.updateJob(job.id, job); | ||
} else { | ||
console.log("sending create..."); | ||
this.createJob(job); | ||
} | ||
|
||
this.cancelEdit(); | ||
console.log("finished..."); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot about the console.log
s here.
By the way, tests are failing due to the spec file in the new dialog component. To fix it, do it as in any of the other component test files: First import the
Then add it to the configuration object in
|
…onent configuration object
What does it do
Dialogs for adding and updating bids have been implemented in the bid manager interface.
Additional context
The dialog to update offers is not yet fully implemented