Merge pull request 'Disable edit button while editing' (#34) from ui/edit_button into master
Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
@@ -305,6 +305,7 @@ export default class PlaceDetails extends Component {
|
|||||||
type="button"
|
type="button"
|
||||||
class="btn btn-outline"
|
class="btn btn-outline"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
|
disabled={{this.isEditing}}
|
||||||
{{on "click" this.startEditing}}
|
{{on "click" this.startEditing}}
|
||||||
>
|
>
|
||||||
<Icon @name="edit" @color="var(--link-color)" />
|
<Icon @name="edit" @color="var(--link-color)" />
|
||||||
|
|||||||
@@ -603,6 +603,12 @@ abbr[title] {
|
|||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn:disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: not-allowed;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-outline {
|
.btn-outline {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|||||||
Reference in New Issue
Block a user