Skip to content

Commit

Permalink
Merge pull request #4066 from alfonso-salces/MOBILE-4470
Browse files Browse the repository at this point in the history
Mobile 4470
  • Loading branch information
NoelDeMartin authored May 27, 2024
2 parents 094cf98 + 5ff760d commit e8f65b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/addons/blog/pages/edit-entry/edit-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/addons/blog/pages/index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ <h3>
</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>
Expand Down

0 comments on commit e8f65b4

Please sign in to comment.