mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-24 08:33:29 +02:00
Доработка запрос на обновление метаданных для существующего текста
This commit is contained in:
parent
8cd3f138a9
commit
f663531412
@ -1156,19 +1156,37 @@ class bslHelper {
|
||||
|
||||
if (value[this.nameField].toLowerCase() == metadataName) {
|
||||
|
||||
for (const [ikey, ivalue] of Object.entries(value.items)) {
|
||||
if (Object.keys(value.items).length) {
|
||||
|
||||
if (ikey.toLowerCase() == metadataItem) {
|
||||
for (const [ikey, ivalue] of Object.entries(value.items)) {
|
||||
|
||||
let methodDef = this.getMetadataMethodByName(value, metadataFunc);
|
||||
let methodsName = (methodDef && methodDef.hasOwnProperty('ref') && methodDef.ref.indexOf(':obj') != -1) ? 'objMethods' : 'refMethods';
|
||||
if (ikey.toLowerCase() == metadataItem) {
|
||||
|
||||
if (ivalue.hasOwnProperty('properties')) {
|
||||
|
||||
let methodDef = this.getMetadataMethodByName(value, metadataFunc);
|
||||
let methodsName = (methodDef && methodDef.hasOwnProperty('ref') && methodDef.ref.indexOf(':obj') != -1) ? 'objMethods' : 'refMethods';
|
||||
|
||||
itemExists = true;
|
||||
this.fillSuggestionsForMetadataItem(suggestions, ivalue);
|
||||
this.getMetadataMethods(suggestions, value, methodsName, key, ikey);
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
requestMetadata(metadataName.toLowerCase() + '.' + metadataItem.toLowerCase());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
itemExists = true;
|
||||
this.fillSuggestionsForMetadataItem(suggestions, ivalue);
|
||||
this.getMetadataMethods(suggestions, value, methodsName, key, ikey);
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
requestMetadata(metadataName.toLowerCase());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user