Commit 2169e252 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

запуск маршрута изменения после сохранения данных по форме

parent fe6b2afc
...@@ -528,5 +528,14 @@ this.appAPI = { ...@@ -528,5 +528,14 @@ this.appAPI = {
resolve(null); resolve(null);
} }
}); });
},
modifyDoc: async function(dataUUID) {
return new Promise(async resolve => {
rest.synergyGet(`api/registry/modify_doc?dataUUID=${dataUUID}&locale=${AS.OPTIONS.locale}`, resolve, err => {
console.log(`ERROR [ modifyDoc ]: ${JSON.stringify(err)}`);
resolve(null);
});
});
} }
} }
...@@ -27,6 +27,7 @@ const getContentFromForm = async (uuid, parentContainer) => { ...@@ -27,6 +27,7 @@ const getContentFromForm = async (uuid, parentContainer) => {
} else { } else {
player.saveFormData(result => { player.saveFormData(result => {
showMessage(i18n.tr('Данные сохранены'), 'success'); showMessage(i18n.tr('Данные сохранены'), 'success');
appAPI.modifyDoc(player.model.asfDataId);
Cons.hideLoader(); Cons.hideLoader();
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment