flowable / flowable/flowable-engine
Warning for losing unsaved work in process modeler doesn't always show
- Ngôn ngữ chính
- Java
- Star
- 9.5k
- Fork
- 2.9k
- Merge trung bình
- 7 giờ 8 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
**Describe the bug**
Due to the nature of navigation (using the "#"), the `onbeforeunload` hook to warn users about abandoning unsaved work does not work when navigating via buttons or hyperlinks inside the modeler. If you use regular, in-modeler navigation, like eg. closing the model or clicking on one of the links to other designers (like the Forms designer), you don't get a warning and lose your work. Going back to the process model just shows you the last saved version again and all work is lost. You do get the warning when you go to another site (from the address bar or a bookmark) or do a full refresh of the page but the hash-navigation ("the single page app way") doesn't trigger the hook, thus no warning, thus possibly losing unsaved work. The old flowable-explorer didn't use this manner of navigation so this problem didn't occur there.
**Expected behavior**
So whenever you edit a model and make the slightest change, the onbeforeunload hook should be added but also a hook to the hash-navigation-framework that is used to display a custom warning prompt. If not possible I guess Flowable should shelve the changes (eg. on localstorage) and gives the possibility to start working from those shelved changes instead of the ones saved in the DB.
**Additional context**
Flowable 6.5.0.6
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu từ phần xử lý onbeforeunload của trình mô hình hóa quy trình và framework điều hướng bằng hash, sau đó tái hiện việc điều hướng qua trình mô hình hóa và qua các liên kết đến những designer khác sau khi thực hiện chỉnh sửa. Hoàn thành khi điều hướng nội bộ hiển thị cảnh báo tùy chỉnh về các thay đổi chưa lưu và không loại bỏ chúng, trong khi cảnh báo hiện có cho điều hướng bên ngoài và việc làm mới vẫn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100