Merge pull request 'Disable edit button while editing' (#34) from ui/edit_button into master
All checks were successful
CI / Lint (push) Successful in 50s
CI / Test (push) Successful in 1m0s

Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
2026-03-18 15:13:15 +00:00
2 changed files with 7 additions and 0 deletions

View File

@@ -305,6 +305,7 @@ export default class PlaceDetails extends Component {
type="button"
class="btn btn-outline"
title="Edit"
disabled={{this.isEditing}}
{{on "click" this.startEditing}}
>
<Icon @name="edit" @color="var(--link-color)" />

View File

@@ -603,6 +603,12 @@ abbr[title] {
gap: 0.5rem;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
.btn-outline {
background: transparent;
color: #333;