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"
|
||||
},
|
||||
"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": {
|
||||
"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>
|
||||
<ul class='menu-list'>
|
||||
<li class='disappearing-messages'>{{ disappearing-messages }}</li>
|
||||
<li class='view-all-media'>{{ viewAllMedia }}</li>
|
||||
<li class='view-all-media'>{{ view-all-media }}</li>
|
||||
{{#group}}
|
||||
<li class='show-members'>{{ show-members }}</li>
|
||||
<!-- <li class='update-group'>Update group</li> -->
|
||||
|
|
|
@ -111,6 +111,7 @@
|
|||
'disappearing-messages': i18n('disappearingMessages'),
|
||||
'android-length-warning': i18n('androidMessageLengthWarning'),
|
||||
timer_options: Whisper.ExpirationTimerOptions.models,
|
||||
'view-all-media': i18n('viewAllMedia'),
|
||||
};
|
||||
},
|
||||
initialize(options) {
|
||||
|
@ -568,6 +569,10 @@
|
|||
el[0].scrollIntoView();
|
||||
},
|
||||
|
||||
viewAllMedia() {
|
||||
console.log('View All Media');
|
||||
},
|
||||
|
||||
scrollToBottom() {
|
||||
// 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!
|
||||
|
|
Loading…
Reference in a new issue