MOBILE-3753 messages: Add context to messages badges
parent
ef0ed6c7fb
commit
de6442daab
|
@ -281,6 +281,7 @@
|
|||
"addon.messages.noncontacts": "message",
|
||||
"addon.messages.nousersfound": "local_moodlemobileapp",
|
||||
"addon.messages.numparticipants": "message",
|
||||
"addon.messages.pendingcontactrequests": "message",
|
||||
"addon.messages.removecontact": "message",
|
||||
"addon.messages.removecontactconfirm": "message",
|
||||
"addon.messages.removefromfavourites": "message",
|
||||
|
@ -301,6 +302,8 @@
|
|||
"addon.messages.unblockuser": "message",
|
||||
"addon.messages.unblockuserconfirm": "message",
|
||||
"addon.messages.unmuteconversation": "message",
|
||||
"addon.messages.unreadconversations": "message",
|
||||
"addon.messages.unreadmessages": "message",
|
||||
"addon.messages.useentertosend": "message",
|
||||
"addon.messages.useentertosenddescdesktop": "local_moodlemobileapp",
|
||||
"addon.messages.useentertosenddescmac": "local_moodlemobileapp",
|
||||
|
@ -1450,6 +1453,7 @@
|
|||
"core.course.completion_automatic:todo": "course",
|
||||
"core.course.completion_manual:aria:done": "course",
|
||||
"core.course.completion_manual:aria:markdone": "course",
|
||||
"core.course.completion_manual:done": "course",
|
||||
"core.course.completion_manual:markdone": "course",
|
||||
"core.course.completion_setby:auto:done": "course",
|
||||
"core.course.completion_setby:auto:todo": "course",
|
||||
|
@ -1748,6 +1752,7 @@
|
|||
"core.hasdatatosync": "local_moodlemobileapp",
|
||||
"core.help": "moodle",
|
||||
"core.hide": "moodle",
|
||||
"core.hideadvanced": "form",
|
||||
"core.hour": "moodle",
|
||||
"core.hours": "moodle",
|
||||
"core.humanreadablesize": "local_moodlemobileapp",
|
||||
|
@ -2114,6 +2119,7 @@
|
|||
"core.sharedfiles.sharedfiles": "local_moodlemobileapp",
|
||||
"core.sharedfiles.successstorefile": "local_moodlemobileapp",
|
||||
"core.show": "moodle",
|
||||
"core.showadvanced": "form",
|
||||
"core.showless": "form",
|
||||
"core.showmore": "form",
|
||||
"core.site": "moodle",
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
"noncontacts": "Non-contacts",
|
||||
"nousersfound": "No users found",
|
||||
"numparticipants": "{{$a}} participants",
|
||||
"pendingcontactrequests": "There are {{$a}} pending contact requests",
|
||||
"removecontact": "Remove contact",
|
||||
"removecontactconfirm": "Are you sure you want to remove {{$a}} from your contacts?",
|
||||
"removefromfavourites": "Unstar conversation",
|
||||
|
@ -71,6 +72,8 @@
|
|||
"unblockuser": "Unblock user",
|
||||
"unblockuserconfirm": "Are you sure you want to unblock {{$a}}?",
|
||||
"unmuteconversation": "Unmute",
|
||||
"unreadconversations": "There are {{$a}} unread conversations",
|
||||
"unreadmessages": "There are {{$a}} unread messages",
|
||||
"useentertosend": "Use enter to send",
|
||||
"useentertosenddescdesktop": "If disabled, you can use Ctrl+Enter to send the message.",
|
||||
"useentertosenddescmac": "If disabled, you can use Cmd+Enter to send the message.",
|
||||
|
@ -81,4 +84,4 @@
|
|||
"you": "You:",
|
||||
"youhaveblockeduser": "You have blocked this user.",
|
||||
"yourcontactrequestpending": "Your contact request is pending with {{$a}}"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,11 +25,13 @@
|
|||
|
||||
<core-loading [hideUntil]="loaded" [message]="loadingMessage">
|
||||
<ion-list>
|
||||
<ion-item class="ion-text-wrap addon-message-discussion" (click)="gotoContacts()"
|
||||
[attr.aria-label]="'addon.messages.contacts' | translate" detail="true" button>
|
||||
<ion-item class="ion-text-wrap addon-message-discussion" (click)="gotoContacts()" detail="true" button>
|
||||
<ion-icon name="fas-address-book" slot="start" aria-hidden="true"></ion-icon>
|
||||
<ion-label><h2>{{ 'addon.messages.contacts' | translate }}</h2></ion-label>
|
||||
<ion-badge *ngIf="contactRequestsCount > 0" slot="end">{{contactRequestsCount}}</ion-badge>
|
||||
<ion-badge *ngIf="contactRequestsCount > 0" slot="end" aria-hidden="true">{{contactRequestsCount}}</ion-badge>
|
||||
<span *ngIf="contactRequestsCount > 0" class="sr-only">
|
||||
{{ 'addon.messages.pendingcontactrequests' | translate:{$a: contactRequestsCount} }}
|
||||
</span>
|
||||
</ion-item>
|
||||
<!-- Favourite conversations. -->
|
||||
<ion-item
|
||||
|
@ -46,7 +48,10 @@
|
|||
<ion-icon *ngIf="!favourites.expanded" name="fas-caret-right" slot="start" aria-hidden="true"></ion-icon>
|
||||
<ion-icon *ngIf="favourites.expanded" name="fas-caret-down" slot="start" aria-hidden="true"></ion-icon>
|
||||
<ion-label><h2>{{ 'core.favourites' | translate }} ({{ favourites.count }})</h2></ion-label>
|
||||
<ion-badge slot="end" *ngIf="favourites.unread">{{ favourites.unread }}</ion-badge>
|
||||
<ion-badge slot="end" *ngIf="favourites.unread" aria-hidden="true">{{ favourites.unread }}</ion-badge>
|
||||
<span *ngIf="favourites.unread" class="sr-only">
|
||||
{{ 'addon.messages.unreadconversations' | translate:{$a: favourites.unread} }}
|
||||
</span>
|
||||
</ion-item>
|
||||
<div [hidden]="!favourites.conversations || !favourites.expanded || favourites.loading" #favlist
|
||||
id="addon-messages-groupconversations-favourite">
|
||||
|
@ -78,7 +83,10 @@
|
|||
<ion-icon *ngIf="!group.expanded" name="fas-caret-right" slot="start" aria-hidden="true"></ion-icon>
|
||||
<ion-icon *ngIf="group.expanded" name="fas-caret-down" slot="start" aria-hidden="true"></ion-icon>
|
||||
<ion-label><h2>{{ 'addon.messages.groupconversations' | translate }} ({{ group.count }})</h2></ion-label>
|
||||
<ion-badge slot="end" *ngIf="group.unread">{{ group.unread }}</ion-badge>
|
||||
<ion-badge slot="end" *ngIf="group.unread" aria-hidden="true">{{ group.unread }}</ion-badge>
|
||||
<span *ngIf="group.unread" class="sr-only">
|
||||
{{ 'addon.messages.unreadconversations' | translate:{$a: group.unread} }}
|
||||
</span>
|
||||
</ion-item>
|
||||
<div [hidden]="!group.conversations || !group.expanded || group.loading" #grouplist
|
||||
id="addon-messages-groupconversations-group">
|
||||
|
@ -111,7 +119,10 @@
|
|||
<ion-label>
|
||||
<h2>{{ 'addon.messages.individualconversations' | translate }} ({{ individual.count }})</h2>
|
||||
</ion-label>
|
||||
<ion-badge slot="end" *ngIf="individual.unread">{{ individual.unread }}</ion-badge>
|
||||
<ion-badge slot="end" *ngIf="individual.unread" aria-hidden="true">{{ individual.unread }}</ion-badge>
|
||||
<span *ngIf="individual.unread" class="sr-only">
|
||||
{{ 'addon.messages.unreadconversations' | translate:{$a: individual.unread} }}
|
||||
</span>
|
||||
</ion-item>
|
||||
<div [hidden]="!individual.conversations || !individual.expanded || individual.loading" #indlist
|
||||
id="addon-messages-groupconversations-individual">
|
||||
|
@ -171,7 +182,10 @@
|
|||
</p>
|
||||
</ion-label>
|
||||
<ion-note *ngIf="conversation.lastmessagedate > 0 || conversation.unreadcount" slot="end">
|
||||
<ion-badge *ngIf="conversation.unreadcount > 0">{{ conversation.unreadcount }}</ion-badge>
|
||||
<ion-badge *ngIf="conversation.unreadcount > 0" aria-label="true">{{ conversation.unreadcount }}</ion-badge>
|
||||
<span *ngIf="conversation.unreadcount > 0" class="sr-only">
|
||||
{{ 'addon.messages.unreadmessages' | translate:{$a: conversation.unreadcount} }}
|
||||
</span>
|
||||
<span *ngIf="conversation.lastmessagedate > 0">{{conversation.lastmessagedate | coreDateDayOrTime}}</span>
|
||||
</ion-note>
|
||||
</ion-item>
|
||||
|
|
Loading…
Reference in New Issue