forked from EVOgeek/Vmeda.Online
commit
e8f65b4252
|
@ -140,7 +140,7 @@ export class AddonBlogEditEntryPage implements CanLeave, OnInit {
|
||||||
this.entry = await this.getEntry({ filters, lastModified, entryId });
|
this.entry = await this.getEntry({ filters, lastModified, entryId });
|
||||||
this.files = this.entry.attachmentfiles ?? [];
|
this.files = this.entry.attachmentfiles ?? [];
|
||||||
this.initialFiles = [...this.files];
|
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');
|
this.modId = this.entry.coursemoduleid ? this.entry.coursemoduleid : CoreNavigator.getRouteNumberParam('cmId');
|
||||||
|
|
||||||
if (this.courseId) {
|
if (this.courseId) {
|
||||||
|
|
|
@ -121,7 +121,8 @@
|
||||||
</core-loading>
|
</core-loading>
|
||||||
|
|
||||||
<!-- Create a blog entry. -->
|
<!-- 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-fab-button (click)="createNewEntry()" [attr.aria-label]="'addon.blog.addnewentry' | translate">
|
||||||
<ion-icon name="fas-pen-to-square" aria-hidden="true" />
|
<ion-icon name="fas-pen-to-square" aria-hidden="true" />
|
||||||
<span class="sr-only">{{ 'addon.blog.addnewentry' | translate }}</span>
|
<span class="sr-only">{{ 'addon.blog.addnewentry' | translate }}</span>
|
||||||
|
|
Loading…
Reference in New Issue