зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #2352 from nextcloud/bugfix/vuejs/simplify-page-title-generation
Do not fail hard when the conversation wasn't found (yet)
This commit is contained in:
Коммит
75f5fa6040
11
src/App.vue
11
src/App.vue
|
@ -150,18 +150,17 @@ export default {
|
|||
onResize() {
|
||||
this.windowHeight = window.innerHeight - document.getElementById('header').clientHeight
|
||||
},
|
||||
newButtonAction(e) {
|
||||
console.debug(e)
|
||||
},
|
||||
log(e) {
|
||||
console.debug(e)
|
||||
},
|
||||
|
||||
/**
|
||||
* Get a conversation's name.
|
||||
* @param {string} token The conversation's token
|
||||
* @returns {string} The conversation's name
|
||||
*/
|
||||
getConversationName(token) {
|
||||
if (!this.$store.getters.conversations[token]) {
|
||||
return ''
|
||||
}
|
||||
|
||||
return this.$store.getters.conversations[token].displayName
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче