Remove unused table index from WorkNote model and update DropdownWidget to enhance button styling on click
This commit is contained in:
parent
e91af64c1c
commit
ded5ff6ddb
2 changed files with 1 additions and 3 deletions
|
@ -7,9 +7,6 @@ from . import db
|
||||||
|
|
||||||
class WorkNote(db.Model):
|
class WorkNote(db.Model):
|
||||||
__tablename__ = 'work_note'
|
__tablename__ = 'work_note'
|
||||||
__table_args__ = (
|
|
||||||
db.Index('ix_work_note_work_log_id', 'work_log_id'),
|
|
||||||
)
|
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True)
|
||||||
work_log_id: Mapped[int] = mapped_column(ForeignKey('work_log.id', ondelete='CASCADE'), nullable=False, index=True)
|
work_log_id: Mapped[int] = mapped_column(ForeignKey('work_log.id', ondelete='CASCADE'), nullable=False, index=True)
|
||||||
|
|
|
@ -54,6 +54,7 @@ const DropdownWidget = (() => {
|
||||||
if (e.target.dataset.invValue) {
|
if (e.target.dataset.invValue) {
|
||||||
clearButton.classList.remove("d-none");
|
clearButton.classList.remove("d-none");
|
||||||
button.classList.add("rounded-end-0");
|
button.classList.add("rounded-end-0");
|
||||||
|
button.classList.add("border-end-0");
|
||||||
button.classList.remove("rounded-end");
|
button.classList.remove("rounded-end");
|
||||||
} else {
|
} else {
|
||||||
clearButton.classList.add("d-none");
|
clearButton.classList.add("d-none");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue