Merge pull request #3554 from alfonso-salces/MOBILE-4251
MOBILE-4251 Feedback: Hide preview button and revert some changesmain
commit
e849b049bb
|
@ -36,8 +36,9 @@
|
|||
|
||||
<div collapsible-footer *ngIf="!showLoading" slot="fixed">
|
||||
<div class="list-item-limited-width adaptable-buttons-row"
|
||||
*ngIf="access && !access.isempty && (access.canedititems || access.canviewreports)">
|
||||
<ion-button expand="block" fill="outline" (click)="gotoAnswerQuestions(true)" class="ion-margin ion-text-wrap">
|
||||
*ngIf="access && (access.canedititems || access.canviewreports || !access.isempty)">
|
||||
<ion-button *ngIf="access.canedititems || access.canviewreports" expand="block" fill="outline"
|
||||
(click)="gotoAnswerQuestions(true)" class="ion-margin ion-text-wrap">
|
||||
<ion-icon name="fas-search" slot="start" aria-hidden="true"></ion-icon>
|
||||
{{ 'addon.mod_feedback.preview' | translate }}
|
||||
</ion-button>
|
||||
|
|
|
@ -109,7 +109,7 @@ export class AddonModFeedbackFormPage implements OnInit, OnDestroy, CanLeave {
|
|||
|
||||
await this.fetchData();
|
||||
|
||||
if (!this.access || this.access.isempty || (!this.access.canedititems && !this.access.canviewreports)) {
|
||||
if (!this.access || this.access.isempty && (!this.access.canedititems && !this.access.canviewreports)) {
|
||||
CoreDomUtils.showErrorModal(Translate.instant('core.nopermissiontoaccesspage'));
|
||||
|
||||
CoreNavigator.back();
|
||||
|
|
Loading…
Reference in New Issue