feat: disable Save button when content unchanged

- Save button starts disabled and only enables when title or description
  differs from the original task values
- updateSaveButton() compares current input values against task data
- input event listeners on title and desc fields call updateSaveButton
- Add global button:disabled style (opacity 0.5, cursor not-allowed)
This commit is contained in:
Yuyao Huang
2026-05-09 16:26:41 +08:00
parent ea21b0c78c
commit 3f0fccd218
2 changed files with 21 additions and 0 deletions
+5
View File
@@ -182,6 +182,11 @@ body {
background-color: #229954;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.error-message {
color: #e74c3c;
margin-bottom: 1rem;