dochub-sdk 0.1.324 → 0.1.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,11 +105,13 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
|
|
105
105
|
* Возвращает метаинформацию для режима редактирования
|
106
106
|
*/
|
107
107
|
async getMetaEdit(): Promise<IDocHubEditableMeta> {
|
108
|
+
const entries = this.followFiles || [];
|
109
|
+
!entries.length && entries.push(...await DocHub.dataLake.getURIForPath(this.profile?.$base));
|
108
110
|
return {
|
109
|
-
title: this.profile?.title || this.followFiles?.[0] || '$undefined$',
|
111
|
+
title: this.profile?.title || this.profile?.$base?.toString() || this.followFiles?.[0] || '$undefined$',
|
110
112
|
icon: getIconByURI(this.baseURI || this.followFiles?.[0]),
|
111
113
|
// Генерирует на все задействованные файлы точки редактирования
|
112
|
-
entries:
|
114
|
+
entries: entries.map((uri: string): IDocHubEditableMetaEditEntry => {
|
113
115
|
return {
|
114
116
|
title: uri,
|
115
117
|
icon: getIconByURI(uri),
|