-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing labels while editing issue kills your changes. #8342
Comments
Please give more details (Git version on your server, your OS, etc). @lunny shouldn't this issue a bug? |
On my own server, here's the specs:
|
Hi, it seems to me that the issue is caused by As codes below show, the web page is forced to reload each time the $('.' + selector).dropdown('setting', 'onHide', function(){
hasLabelUpdateAction = $listMenu.data('action') == 'update'; // Update the var
if (hasLabelUpdateAction) {
const promises = [];
Object.keys(labels).forEach(function(elementId) {
const label = labels[elementId];
const promise = updateIssuesMeta(
label["update-url"],
label["action"],
label["issue-id"],
elementId
);
promises.push(promise);
});
Promise.all(promises).then(reload);
}
}); Since all labels are loaded to web page by default and could be shown/hided with JavaScript, it's not necessary to reload. Therefore there maybe two options to fix this issue:
Please let me know what you guys think. I could try to fix this issue. 😄 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Related issue: #11004 |
This should be partially fixed by #23014 in that a confirmation dialog comes up before a reload. Just mentioning here to aid tracking. |
This should be resolved by #23876 |
Gitea version (or commit ref): 1.10.0+dev-352-g7ff783b73
(Tested on try.gitea.io)
Can you reproduce the bug at https://try.gitea.io:
Description
If you change the labels of an issue while you're editing its text, your changes will disappear after closing the label-selection dialogue.
Screenshots
The text was updated successfully, but these errors were encountered: