MOBILE-4616 viewer: Show toast over comment input

main
Alfonso Salces 2024-10-21 14:05:55 +02:00
parent 8ea6c00a28
commit ca1595d165
2 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@
</core-loading> </core-loading>
</ion-content> </ion-content>
<ion-footer class="footer-adjustable" *ngIf="commentsLoaded && canAddComments"> <ion-footer class="footer-adjustable" id="viewer-footer" *ngIf="commentsLoaded && canAddComments">
<ion-toolbar> <ion-toolbar>
<core-send-message-form [sendDisabled]="sending" [message]="newComment" (onSubmit)="addComment($event)" <core-send-message-form [sendDisabled]="sending" [message]="newComment" (onSubmit)="addComment($event)"
[placeholder]="'core.comments.addcomment' | translate" /> [placeholder]="'core.comments.addcomment' | translate" />

View File

@ -329,6 +329,8 @@ export class CoreCommentsViewerPage implements OnInit, OnDestroy {
message: commentsResponse ? 'core.comments.eventcommentcreated' : 'core.datastoredoffline', message: commentsResponse ? 'core.comments.eventcommentcreated' : 'core.datastoredoffline',
translateMessage: true, translateMessage: true,
duration: ToastDuration.LONG, duration: ToastDuration.LONG,
position: 'bottom',
positionAnchor: 'viewer-footer',
}); });
if (commentsResponse) { if (commentsResponse) {