Skip to content

Commit 76d884c

Browse files
authored
Merge pull request #4399 from crazyserver/MOBILE-4653
Mobile 4653
2 parents 9653677 + 517fdb3 commit 76d884c

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

src/addons/storagemanager/pages/course-storage/course-storage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ export default class AddonStorageManagerCourseStoragePage implements OnInit, OnD
748748
}
749749

750750
CoreAlerts.showError(error, { default: Translate.instant('core.course.errordownloadingcourse') });
751+
} finally {
752+
this.changeDetectorRef.markForCheck();
751753
}
752754
}
753755

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
<img *ngIf="completion && completion.tracking !== 1" [src]="completionImage" [alt]="completionDescription$ | async">
2-
3-
<ion-button fill="clear" *ngIf="completion && completion.tracking === 1" (click)="completionClicked($event)"
4-
[title]="completionDescription$ | async">
5-
<img [src]="completionImage" role="presentation" alt="">
6-
</ion-button>
1+
@if (completion) {
2+
@if (completion.tracking === 1) {
3+
<ion-button fill="clear" (click)="completionClicked($event)" [title]="completionDescription$ | async"
4+
class="core-completion-manual">
5+
<img [src]="completionImage" role="presentation" alt="">
6+
</ion-button>
7+
} @else {
8+
<img [src]="completionImage" [alt]="completionDescription$ | async" class="core-completion-auto">
9+
}
10+
}
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
:host {
22
display: contents;
3-
--size: 30px;
3+
--size: 20px;
4+
5+
img.core-completion-auto {
6+
margin: 6px;
7+
}
48

59
img {
6-
padding: 2px;
710
width: var(--size);
8-
vertical-align: middle;
911
max-width: none;
10-
margin: 4px;
12+
vertical-align: middle;
1113
}
1214

13-
ion-button {
15+
ion-button.core-completion-manual {
1416
--padding-top: 0px;
1517
--padding-start: 0px;
1618
--padding-end: 0px;
1719
--padding-bottom: 0px;
18-
margin: 0;
1920
--a11y-target-min-size: 32px;
2021
width: var(--a11y-target-min-size);
2122
height: var(--a11y-target-min-size);
2223
min-width: var(--a11y-target-min-size);
23-
min-height: var(--a11y-target-min-size);;
24+
min-height: var(--a11y-target-min-size);
25+
margin: 0px;
2426
}
2527
}

0 commit comments

Comments
 (0)