Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2683

Editor Embedded: export may be started while last edited segment still is saving

    XMLWordPrintable

Details

    • 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.

    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.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: