Merge pull request #4066 from alfonso-salces/MOBILE-4470

Mobile 4470
main
Noel De Martin 2024-05-27 15:02:15 +02:00 committed by GitHub
commit e8f65b4252
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -140,7 +140,7 @@ export class AddonBlogEditEntryPage implements CanLeave, OnInit {
this.entry = await this.getEntry({ filters, lastModified, entryId });
this.files = this.entry.attachmentfiles ?? [];
this.initialFiles = [...this.files];
this.courseId = this.entry.courseid;
this.courseId = CoreNavigator.getRouteNumberParam('courseId') ?? this.entry.courseid;
this.modId = this.entry.coursemoduleid ? this.entry.coursemoduleid : CoreNavigator.getRouteNumberParam('cmId');
if (this.courseId) {

View File

@ -121,7 +121,8 @@
</core-loading>
<!-- Create a blog entry. -->
<ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end" *ngIf="loaded && optionsAvailable">
<ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end"
*ngIf="loaded && optionsAvailable && (!filter.userid || (filter.userid && currentUserId === filter.userid))">
<ion-fab-button (click)="createNewEntry()" [attr.aria-label]="'addon.blog.addnewentry' | translate">
<ion-icon name="fas-pen-to-square" aria-hidden="true" />
<span class="sr-only">{{ 'addon.blog.addnewentry' | translate }}</span>