Add document name to room entry preview
This commit is contained in:
parent
7bc8c3c3aa
commit
c7cf6f7863
|
|
@ -25,7 +25,7 @@
|
|||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/roomEntriesQuery.gql';
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
|
||||
import UserWidget from '@/components/UserWidget.vue';
|
||||
import UserWidget from '@/components/UserWidget';
|
||||
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||
|
||||
export default {
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
components: {
|
||||
MoreOptionsWidget,
|
||||
UserWidget,
|
||||
UserWidget
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -81,6 +81,9 @@
|
|||
// return first.value.text;
|
||||
case 'link_block':
|
||||
return first.value.url;
|
||||
case 'document_block':
|
||||
const parts = first.value.url.split('/');
|
||||
return parts[parts.length - 1];
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue