MOBILE-3833 resource: Change button order on resource

main
Pau Ferrer Ocaña 2022-03-30 13:33:59 +02:00
parent f25a51b5d1
commit c6191229a0
1 changed files with 6 additions and 6 deletions

View File

@ -81,6 +81,12 @@
<div collapsible-footer appearOnBottom *ngIf="!showLoading" slot="fixed"> <div collapsible-footer appearOnBottom *ngIf="!showLoading" slot="fixed">
<div class="list-item-limited-width" *ngIf="mode == 'external'"> <div class="list-item-limited-width" *ngIf="mode == 'external'">
<ion-button *ngIf="isIOS && (!shouldOpenInBrowser || !isOnline)" expand="block" fill="outline"
(click)="open(openFileAction.OPEN_WITH)" class="ion-margin ion-text-wrap">
<ion-icon name="far-share-square" slot="start" aria-hidden="true"></ion-icon>
{{ 'core.openwith' | translate }}
</ion-button>
<ion-button expand="block" (click)="open(openFileAction.OPEN)" class="ion-margin ion-text-wrap"> <ion-button expand="block" (click)="open(openFileAction.OPEN)" class="ion-margin ion-text-wrap">
<ng-container *ngIf="isStreamedFile"> <ng-container *ngIf="isStreamedFile">
<ion-icon name="fas-play" slot="start" aria-hidden="true"></ion-icon> <ion-icon name="fas-play" slot="start" aria-hidden="true"></ion-icon>
@ -91,12 +97,6 @@
{{ 'addon.mod_resource.openthefile' | translate }} {{ 'addon.mod_resource.openthefile' | translate }}
</ng-container> </ng-container>
</ion-button> </ion-button>
<ion-button *ngIf="isIOS && (!shouldOpenInBrowser || !isOnline)" expand="block" (click)="open(openFileAction.OPEN_WITH)"
class="ion-margin ion-text-wrap">
<ion-icon name="far-share-square" slot="start" aria-hidden="true"></ion-icon>
{{ 'core.openwith' | translate }}
</ion-button>
</div> </div>
<core-course-module-navigation [courseId]="courseId" [currentModuleId]="module.id"> <core-course-module-navigation [courseId]="courseId" [currentModuleId]="module.id">
</core-course-module-navigation> </core-course-module-navigation>