Skip to content

Commit 3fdc860

Browse files
authored
Merge pull request #4153 from crazyserver/MOBILE-4638
Mobile 4638
2 parents 660636d + 5891c2e commit 3fdc860

File tree

17 files changed

+54
-38
lines changed

17 files changed

+54
-38
lines changed

scripts/langindex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@
546546
"addon.mod_choice.userchoosethisoption": "choice",
547547
"addon.mod_choice.yourselection": "choice",
548548
"addon.mod_data.actionsmenu": "data",
549-
"addon.mod_data.addentries": "data",
549+
"addon.mod_data.add": "data",
550550
"addon.mod_data.advancedsearch": "data",
551551
"addon.mod_data.alttext": "data",
552552
"addon.mod_data.approve": "data",

src/addons/messages/pages/discussion/discussion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
9696
groupMessagingEnabled: boolean;
9797
isGroup = false;
9898
members: {[id: number]: AddonMessagesConversationMember} = {}; // Members that wrote a message, indexed by ID.
99-
favouriteIcon = 'fa-star';
99+
favouriteIcon = 'fas-star';
100100
deleteIcon = 'fas-trash';
101101
blockIcon = 'fas-user-lock';
102102
addRemoveIcon = 'fas-user-plus';

src/addons/mod/data/components/index/addon-mod-data-index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<ion-icon name="fas-magnifying-glass" slot="icon-only" aria-hidden="true" />
55
</ion-button>
66
<core-context-menu>
7-
<core-context-menu-item [priority]="500" *ngIf="canAdd" [content]="'addon.mod_data.addentries' | translate" iconAction="fas-plus"
8-
(action)="gotoAddEntries()" />
7+
<core-context-menu-item [priority]="500" *ngIf="canAdd" [content]="'addon.mod_data.add' | translate" iconAction="fas-plus"
8+
(action)="gotoAddEntry()" />
99
<core-context-menu-item [priority]="400" *ngIf="firstEntry" [content]="'addon.mod_data.single' | translate" iconAction="fas-file"
1010
(action)="gotoEntry(firstEntry)" />
1111
</core-context-menu>
@@ -111,8 +111,8 @@
111111

112112

113113
<ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end" *ngIf="canAdd">
114-
<ion-fab-button (click)="gotoAddEntries()" [attr.aria-label]="'addon.mod_data.addentries' | translate">
114+
<ion-fab-button (click)="gotoAddEntry()" [attr.aria-label]="'addon.mod_data.add' | translate">
115115
<ion-icon name="fas-plus" aria-hidden="true" />
116-
<span class="sr-only">{{ 'addon.mod_data.addentries' | translate }}</span>
116+
<span class="sr-only">{{ 'addon.mod_data.add' | translate }}</span>
117117
</ion-fab-button>
118118
</ion-fab>

src/addons/mod/data/components/index/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
487487
}
488488

489489
/**
490-
* Opens add entries form.
490+
* Opens add entry form.
491491
*/
492-
gotoAddEntries(): void {
492+
gotoAddEntry(): void {
493493
const params: Params = {
494494
title: this.module.name,
495495
group: this.selectedGroup,

src/addons/mod/data/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"actionsmenu": "Actions menu",
3-
"addentries": "Add entries",
3+
"add": "Add entry",
44
"advancedsearch": "Advanced search",
55
"alttext": "Alternative text",
66
"approve": "Approve",

src/addons/mod/data/tests/behat/entries.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Feature: Users can manage entries in database activities
3030
Scenario: Create entry
3131
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
3232
Then I should find "No entries yet" in the app
33-
When I press "Add entries" in the app
33+
When I press "Add entry" in the app
3434
And I set the following fields to these values in the app:
3535
| URL | https://moodle.org/ |
3636
| Description | Moodle community site |
@@ -48,13 +48,13 @@ Feature: Users can manage entries in database activities
4848
And I entered the data activity "Web links" on course "Course 1" as "student1" in the app
4949

5050
# TODO Create and use a generator for database entries.
51-
When I press "Add entries" in the app
51+
When I press "Add entry" in the app
5252
And I set the following fields to these values in the app:
5353
| URL | https://moodle.org/ |
5454
| Description | Moodle community site |
5555
And I press "Save" near "Web links" in the app
5656
And I entered the data activity "Web links" on course "Course 1" as "student2" in the app
57-
And I press "Add entries" in the app
57+
And I press "Add entry" in the app
5858
And I set the following fields to these values in the app:
5959
| URL | https://moodlecloud.com/ |
6060
| Description | Moodle Cloud |
@@ -80,7 +80,7 @@ Feature: Users can manage entries in database activities
8080
And I should find "Moodle Cloud" in the app
8181

8282
Given I entered the data activity "Data with comments" on course "Course 1" as "student1" in the app
83-
When I press "Add entries" in the app
83+
When I press "Add entry" in the app
8484
And I set the following fields to these values in the app:
8585
| Description | Moodle community site |
8686
And I press "Save" near "Data with comments" in the app
@@ -102,7 +102,7 @@ Feature: Users can manage entries in database activities
102102

103103
Scenario: Students can not edit or delete other user's entries from list and single view in the app
104104
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
105-
And I press "Add entries" in the app
105+
And I press "Add entry" in the app
106106
And I set the following fields to these values in the app:
107107
| URL | https://moodle.org/ |
108108
| Description | Moodle community site |
@@ -119,7 +119,7 @@ Feature: Users can manage entries in database activities
119119

120120
Scenario: Delete entry (student) & Update entry (student)
121121
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
122-
And I press "Add entries" in the app
122+
And I press "Add entry" in the app
123123
And I set the following fields to these values in the app:
124124
| URL | https://moodle.org/ |
125125
| Description | Moodle community site |
@@ -150,7 +150,7 @@ Feature: Users can manage entries in database activities
150150
And I should not find "Moodle Cloud" in the app
151151

152152
# Repeat again with single view.
153-
Given I press "Add entries" in the app
153+
Given I press "Add entry" in the app
154154
And I set the following fields to these values in the app:
155155
| URL | https://moodle.org/ |
156156
| Description | Moodle community site |
@@ -185,12 +185,12 @@ Feature: Users can manage entries in database activities
185185

186186
Scenario: Delete entry (teacher) & Update entry (teacher)
187187
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
188-
And I press "Add entries" in the app
188+
And I press "Add entry" in the app
189189
And I set the following fields to these values in the app:
190190
| URL | https://moodle.org/ |
191191
| Description | Moodle community site |
192192
And I press "Save" near "Web links" in the app
193-
And I press "Add entries" in the app
193+
And I press "Add entry" in the app
194194
And I set the following fields to these values in the app:
195195
| URL | https://telegram.org/ |
196196
| Description | Telegram |
@@ -261,7 +261,7 @@ Feature: Users can manage entries in database activities
261261
| database | type | name | description |
262262
| data2 | number | Number | Number value |
263263
And I entered the data activity "Number DB" on course "Course 1" as "student1" in the app
264-
When I press "Add entries" in the app
264+
When I press "Add entry" in the app
265265
And I press "Save" near "Number DB" in the app
266266
Then I should find "You did not fill out any fields!" in the app
267267

src/addons/mod/data/tests/behat/sync.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Feature: Users can store entries in database activities when offline and sync wh
3131
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
3232
And I switch network connection to offline
3333
And I should find "No entries yet" in the app
34-
When I press "Add entries" in the app
34+
When I press "Add entry" in the app
3535
And I set the following fields to these values in the app:
3636
| URL | https://moodle.org/ |
3737
| Description | Moodle community site |
@@ -49,7 +49,7 @@ Feature: Users can store entries in database activities when offline and sync wh
4949
Scenario: Update entry (offline) & Delete entry (offline)
5050
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
5151
And I should find "No entries yet" in the app
52-
And I press "Add entries" in the app
52+
And I press "Add entry" in the app
5353
And I set the following fields to these values in the app:
5454
| URL | https://moodle.org/ |
5555
| Description | Moodle community site |
@@ -101,7 +101,7 @@ Feature: Users can store entries in database activities when offline and sync wh
101101
Scenario: Students can undo deleting entries to a database in the app while offline
102102
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
103103
And I should find "No entries yet" in the app
104-
And I press "Add entries" in the app
104+
And I press "Add entry" in the app
105105
And I set the following fields to these values in the app:
106106
| URL | https://moodle.org/ |
107107
| Description | Moodle community site |

src/addons/qtype/calculated/component/addon-qtype-calculated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ng-container>
3030
</div>
3131
<ion-icon *ngIf="question.input.correctIcon" class="core-correct-icon ion-align-self-center" slot="end"
32-
[name]="question.input.correctIcon" [color]="[question.input.correctIconColor]" />
32+
[name]="question.input.correctIcon" [color]="[question.input.correctIconColor]" [ariaLabel]="question.input.correctIconLabel" />
3333
</ion-item>
3434

3535
<!-- Display unit options after the answer input. -->

src/addons/qtype/ordering/component/addon-qtype-ordering.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
@if (dragDisabled) {
2121
@if (item.correctClass === 'correct') {
22-
<ion-icon name="fas-check" slot="start" />
22+
<ion-icon name="fas-check-double" slot="start" [ariaLabel]="'core.question.correct' | translate" color="success" />
2323
} @else if (item.correctClass === 'incorrect') {
24-
<ion-icon name="fas-xmark" slot="start" />
24+
<ion-icon name="fas-xmark" slot="start" [ariaLabel]="'core.question.incorrect' | translate" color="danger" />
2525
} @else if (item.correctClass.startsWith('partial')) {
26-
<ion-icon name="far-square-check" slot="start" />
26+
<ion-icon name="fas-check" slot="start" [ariaLabel]="'core.question.partiallycorrect' | translate" color="warning" />
2727
}
2828
}
2929

src/addons/qtype/ordering/component/ordering.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export class AddonQtypeOrderingComponent extends CoreQuestionBaseComponent<Addon
7474
this.question.items = itemsElements.map(element => {
7575
// Remove correctness icons from the content.
7676
const itemContentEl = element.querySelector<HTMLElement>('[data-itemcontent]');
77-
itemContentEl?.querySelector('.icon.fa-check, .icon.fa-remove, .icon.fa-check-square')?.remove();
77+
itemContentEl?.querySelector(
78+
'.icon.fa-check, .icon.fa-remove, .icon.fa-check-square, .icon.fa-check-double, .icon.fa-xmark',
79+
)?.remove();
7880

7981
return {
8082
id: element.id,

0 commit comments

Comments
 (0)