Commit 6ea3af23 authored by Ben Hayward's avatar Ben Hayward

Fixed issue where composer appeared to allow users to edit their image

parent 4610b57c
Pipeline #162634082 failed with stages
in 10 minutes and 12 seconds
......@@ -11,8 +11,8 @@
(onPortraitOrientation)="setPortrait($event)"
>
<div
class="m-composerPreview__close"
[hidden]="isPosting$ | async"
class="m-composerPreview__removeAttachment m-composerPreview__close"
[hidden]="(isPosting$ | async) || (isEditing$ | async)"
(click)="removeAttachment()"
>
<m-icon iconId="close"></m-icon>
......
......@@ -39,6 +39,11 @@ export class PreviewComponent {
*/
isPosting$ = this.service.isPosting$;
/**
* Are we editing?
*/
isEditing$ = this.service.isEditing$;
/**
* Is the media in portrait mode?
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment