refac/enh: knowledge base name on icon hover
This commit is contained in:
@@ -121,6 +121,7 @@
|
|||||||
...item,
|
...item,
|
||||||
type: 'collection'
|
type: 'collection'
|
||||||
}));
|
}));
|
||||||
|
|
||||||
let collection_files =
|
let collection_files =
|
||||||
knowledge.length > 0
|
knowledge.length > 0
|
||||||
? [
|
? [
|
||||||
@@ -139,7 +140,7 @@
|
|||||||
.map((file) => ({
|
.map((file) => ({
|
||||||
...file,
|
...file,
|
||||||
name: file?.meta?.name,
|
name: file?.meta?.name,
|
||||||
description: `${file?.collection?.name} - ${file?.collection?.description}`,
|
description: `${file?.collection?.description}`,
|
||||||
knowledge: true, // DO NOT REMOVE, USED TO INDICATE KNOWLEDGE BASE FILE
|
knowledge: true, // DO NOT REMOVE, USED TO INDICATE KNOWLEDGE BASE FILE
|
||||||
type: 'file'
|
type: 'file'
|
||||||
}))
|
}))
|
||||||
@@ -218,7 +219,7 @@
|
|||||||
content={item?.legacy
|
content={item?.legacy
|
||||||
? $i18n.t('Legacy')
|
? $i18n.t('Legacy')
|
||||||
: item?.type === 'file'
|
: item?.type === 'file'
|
||||||
? $i18n.t('File')
|
? `${item?.collection?.name} > ${$i18n.t('File')}`
|
||||||
: item?.type === 'collection'
|
: item?.type === 'collection'
|
||||||
? $i18n.t('Collection')
|
? $i18n.t('Collection')
|
||||||
: ''}
|
: ''}
|
||||||
|
|||||||
Reference in New Issue
Block a user