Skip to content

Commit 42c6cfa

Browse files
authored
Merge pull request #1047 from crazyserver/MOBILE-2103
Mobile 2103
2 parents 268880c + 525a3ec commit 42c6cfa

File tree

17 files changed

+36
-36
lines changed

17 files changed

+36
-36
lines changed

scss/app.scss

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,24 @@ $ionicons-font-path: "../lib/ionic/release/fonts" !default;
105105
}
106106
}
107107

108-
.button .icon {
109-
color: $positive;
108+
.button,
109+
.button.button-icon {
110+
.icon,
111+
&.active,
112+
&.activated,
113+
&.active .icon,
114+
&.activated .icon {
115+
color: $positive;
110116

111-
&.icon-accessory {
112-
color: $item-icon-accessory-color;
117+
&.assertive {
118+
color: $assertive;
119+
}
120+
&.dark {
121+
color: $dark;
122+
}
123+
&.icon-accessory {
124+
color: $item-icon-accessory-color;
125+
}
113126
}
114127
}
115128

@@ -125,6 +138,12 @@ $ionicons-font-path: "../lib/ionic/release/fonts" !default;
125138
color: $bar-content-text;
126139
}
127140

141+
.item-delete .button.icon,
142+
.item-delete .button.icon.active,
143+
.item-delete .button.icon.actived {
144+
color: $assertive;
145+
}
146+
128147
// Setting the default button to button-outline positive.
129148
.button {
130149
&.button-light,
@@ -142,13 +161,21 @@ $ionicons-font-path: "../lib/ionic/release/fonts" !default;
142161
&.activated {
143162
box-shadow: none;
144163
color: $white;
164+
165+
.icon {
166+
color: $white;
167+
}
145168
}
146169
}
147170

148171
&.active,
149172
&.activated {
150173
box-shadow: none;
151174
color: $white;
175+
176+
.icon {
177+
color: $white;
178+
}
152179
}
153180

154181
&.button-dark {

www/addons/mod/assign/directives/submission.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,14 @@ angular.module('mm.addons.mod_assign')
231231
$mmaModAssign.getSubmissionGradingStatusTranslationId(scope.grade.gradingStatus);
232232
}
233233

234-
if (!scope.feedback) {
234+
if (!scope.feedback || !scope.feedback.plugins) {
235235
scope.feedback = {};
236236

237237
// Feedback plugins not present, we have to use assign configs to detect the plugins used.
238238
scope.feedback.plugins = $mmaModAssignHelper.getPluginsEnabled(assign, 'assignfeedback');
239+
console.error(assign, scope.feedback.plugins);
240+
} else {
241+
console.error(scope.feedback);
239242
}
240243

241244
// Check if there's any offline data for this submission.
@@ -481,7 +484,7 @@ angular.module('mm.addons.mod_assign')
481484
promises.push(feedbackController(scope, assign, response.feedback, courseId, moduleId, submitId));
482485

483486
// Check if there's any unsupported plugin for editing.
484-
if (!scope.userSubmission) {
487+
if (!scope.userSubmission || !scope.userSubmission.plugins) {
485488
scope.userSubmission = {};
486489
// Submission not created yet, we have to use assign configs to detect the plugins used.
487490
scope.userSubmission.plugins = $mmaModAssignHelper.getPluginsEnabled(assign, 'assignsubmission');

www/addons/mod/forum/lang/ca.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
"refreshdiscussions": "Actualitza els debats",
2626
"refreshposts": "Actualitza els missatges",
2727
"reply": "Respon",
28-
"sortnewestfirst": "Mostra els més recents primer",
29-
"sortoldestfirst": "Mostra els més antics primer",
3028
"subject": "Assumpte",
3129
"unread": "No llegit",
3230
"unreadpostsnumber": "{{$a}} missatges no llegits"

www/addons/mod/forum/lang/cs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"refreshdiscussions": "Obnovit diskuse",
2727
"refreshposts": "Obnovit diskusní příspěvky",
2828
"reply": "Odpovědět",
29-
"sortnewestfirst": "Zobrazit nejnovější",
30-
"sortoldestfirst": "Zobrazit nejstarší",
3129
"subject": "Předmět",
3230
"unread": "Nepřečteno",
3331
"unreadpostsnumber": "Nepřečtené příspěvky: {{$a}}"

www/addons/mod/forum/lang/da.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
"refreshdiscussions": "Genindlæs diskussioner",
2626
"refreshposts": "Genindlæs indlæg",
2727
"reply": "Svar",
28-
"sortnewestfirst": "Vis nyeste først",
29-
"sortoldestfirst": "Vis ældste først",
3028
"subject": "Emne",
3129
"unread": "Ikke læst",
3230
"unreadpostsnumber": "{{$a}} nye indlæg"

www/addons/mod/forum/lang/de.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"refreshdiscussions": "Themen aktualisieren",
2727
"refreshposts": "Forenbeiträge aktualisieren",
2828
"reply": "Antworten",
29-
"sortnewestfirst": "Neu zuerst",
30-
"sortoldestfirst": "Alt zuerst",
3129
"subject": "Betreff",
3230
"unread": "Ungelesen",
3331
"unreadpostsnumber": "{{$a}} ungelesene Beiträge"

www/addons/mod/forum/lang/el.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"refreshdiscussions": "Ανανεώστε τις συζητήσεις",
2525
"refreshposts": "Ανανεώστε τα μηνύματα της συζήτησης",
2626
"reply": "Απάντηση",
27-
"sortnewestfirst": "Εμφανίστε πρώτα τα νεότερα",
28-
"sortoldestfirst": "Εμφανίστε πρώτα τα παλαιότερα",
2927
"subject": "Θέμα",
3028
"unread": "Μη αναγνωσμένο",
3129
"unreadpostsnumber": "{{$a}} μη αναγνωσμένες δημοσιεύσεις"

www/addons/mod/forum/lang/es-mx.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"refreshdiscussions": "Refrescar discusiones",
2727
"refreshposts": "Refrescar publicaciones de discusiones",
2828
"reply": "Responder (réplica)",
29-
"sortnewestfirst": "Mostrar primeramente los más nuevos",
30-
"sortoldestfirst": "Mostrar primeramente los más antiguos",
3129
"subject": "Asunto",
3230
"unread": "No leído",
3331
"unreadpostsnumber": "{{$a}} mensajes no leídos"

www/addons/mod/forum/lang/es.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"refreshdiscussions": "Actualizar foro",
2727
"refreshposts": "Actualizar publicaciones del foro",
2828
"reply": "Responder",
29-
"sortnewestfirst": "Mostrar los más nuevos primero",
30-
"sortoldestfirst": "Mostrar los más antiguos primero",
3129
"subject": "Asunto",
3230
"unread": "No leído",
3331
"unreadpostsnumber": "{{$a}} mensajes no leídos"

www/addons/mod/forum/lang/eu.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"refreshdiscussions": "Freskatu eztabaidak",
2727
"refreshposts": "Freskatu eztabaidetako mezuak",
2828
"reply": "Erantzun",
29-
"sortnewestfirst": "Erakutsi berrienak lehenago",
30-
"sortoldestfirst": "Erakutsi zaharrenak lehenago",
3129
"subject": "Gaia",
3230
"unread": "Irakurri gabe",
3331
"unreadpostsnumber": "Irakurri gabeko {{$a}} mezu"

0 commit comments

Comments
 (0)