Details
-
Improvement
-
Resolution: Fixed
-
None
-
High
-
For translate5 embedded usage: the JS API function Editor.util.TaskActions.isTaskExportable() returns true or false if the currently opened task can be exported regarding the last segment save call.
-
Empty show more show less
Description
problem
In embedded environments it may happen that a "export" button is provided. Then the user may click on "export" while the save call of the last edited segment is still running. In that case this segment is getting lost from the export.
solution
Provide a function isTaskExportable in the JS API class Editor.util.TaskActions.
This function should check the value of SegmentController.saveChainMutex.
If it is true, a save is still running. In that function more checks are possisble to be implemented.
The foreign export button must call "Editor.util.TaskActions.isTaskExportable()" then, to determine if the export can be started or not.