Improve upload item UI
This commit is contained in:
@@ -20,7 +20,6 @@ export default class PlacePhotoItem extends Component {
|
||||
|
||||
@tracked thumbnailUrl = '';
|
||||
@tracked error = '';
|
||||
@tracked isUploaded = false;
|
||||
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
@@ -87,8 +86,6 @@ export default class PlacePhotoItem extends Component {
|
||||
]);
|
||||
}
|
||||
|
||||
this.isUploaded = true;
|
||||
|
||||
if (this.args.onSuccess) {
|
||||
this.args.onSuccess({
|
||||
file,
|
||||
@@ -137,12 +134,6 @@ export default class PlacePhotoItem extends Component {
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if this.isUploaded}}
|
||||
<div class="photo-item-overlay success-overlay">
|
||||
<Icon @name="check" @size={{24}} @color="white" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn-remove-photo"
|
||||
|
||||
Reference in New Issue
Block a user