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,17 +1156,35 @@ class bslHelper {
|
||||
|
||||
if (value[this.nameField].toLowerCase() == metadataName) {
|
||||
|
||||
if (Object.keys(value.items).length) {
|
||||
|
||||
for (const [ikey, ivalue] of Object.entries(value.items)) {
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
requestMetadata(metadataName.toLowerCase());
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user