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 ROOM_ENTRIES_QUERY from '@/graphql/gql/roomEntriesQuery.gql';
|
||||||
import ME_QUERY from '@/graphql/gql/meQuery.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';
|
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
MoreOptionsWidget,
|
MoreOptionsWidget,
|
||||||
UserWidget,
|
UserWidget
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -81,6 +81,9 @@
|
||||||
// return first.value.text;
|
// return first.value.text;
|
||||||
case 'link_block':
|
case 'link_block':
|
||||||
return first.value.url;
|
return first.value.url;
|
||||||
|
case 'document_block':
|
||||||
|
const parts = first.value.url.split('/');
|
||||||
|
return parts[parts.length - 1];
|
||||||
default:
|
default:
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue