Wire up ‘View All Media’ menu item
This commit is contained in:
parent
d14761087a
commit
273248d3fd
3 changed files with 8 additions and 2 deletions
|
@ -523,7 +523,8 @@
|
||||||
"message": "Show safety number"
|
"message": "Show safety number"
|
||||||
},
|
},
|
||||||
"viewAllMedia": {
|
"viewAllMedia": {
|
||||||
"message": "View all media"
|
"message": "View all media",
|
||||||
|
"description": "This is a menu item for viewing all media (images + video) in a conversation, using the imperative case, as in a command."
|
||||||
},
|
},
|
||||||
"verifyHelp": {
|
"verifyHelp": {
|
||||||
"message": "If you wish to verify the security of your end-to-end encryption with $name$, compare the numbers above with the numbers on their device.",
|
"message": "If you wish to verify the security of your end-to-end encryption with $name$, compare the numbers above with the numbers on their device.",
|
||||||
|
|
|
@ -159,7 +159,7 @@
|
||||||
<button class='hamburger' alt='conversation menu'></button>
|
<button class='hamburger' alt='conversation menu'></button>
|
||||||
<ul class='menu-list'>
|
<ul class='menu-list'>
|
||||||
<li class='disappearing-messages'>{{ disappearing-messages }}</li>
|
<li class='disappearing-messages'>{{ disappearing-messages }}</li>
|
||||||
<li class='view-all-media'>{{ viewAllMedia }}</li>
|
<li class='view-all-media'>{{ view-all-media }}</li>
|
||||||
{{#group}}
|
{{#group}}
|
||||||
<li class='show-members'>{{ show-members }}</li>
|
<li class='show-members'>{{ show-members }}</li>
|
||||||
<!-- <li class='update-group'>Update group</li> -->
|
<!-- <li class='update-group'>Update group</li> -->
|
||||||
|
|
|
@ -111,6 +111,7 @@
|
||||||
'disappearing-messages': i18n('disappearingMessages'),
|
'disappearing-messages': i18n('disappearingMessages'),
|
||||||
'android-length-warning': i18n('androidMessageLengthWarning'),
|
'android-length-warning': i18n('androidMessageLengthWarning'),
|
||||||
timer_options: Whisper.ExpirationTimerOptions.models,
|
timer_options: Whisper.ExpirationTimerOptions.models,
|
||||||
|
'view-all-media': i18n('viewAllMedia'),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
initialize(options) {
|
initialize(options) {
|
||||||
|
@ -568,6 +569,10 @@
|
||||||
el[0].scrollIntoView();
|
el[0].scrollIntoView();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
viewAllMedia() {
|
||||||
|
console.log('View All Media');
|
||||||
|
},
|
||||||
|
|
||||||
scrollToBottom() {
|
scrollToBottom() {
|
||||||
// If we're above the last seen indicator, we should scroll there instead
|
// If we're above the last seen indicator, we should scroll there instead
|
||||||
// Note: if we don't end up at the bottom of the conversation, button won't go away!
|
// Note: if we don't end up at the bottom of the conversation, button won't go away!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue