Disable edit button while editing
All checks were successful
CI / Lint (pull_request) Successful in 51s
CI / Test (pull_request) Successful in 1m0s
Release Drafter / Update release notes draft (pull_request) Successful in 19s

This commit is contained in:
2026-03-18 19:09:59 +04:00
parent 07489c43a4
commit 8106009677
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;