FIX: reset the delete automatic group tooltip (#31094)

Prior to this change the tooltip would forever stay even after changing
a group until you hard refresh the page.

No test as it's a very niche behavior and we have a todo to have
multiple other improvements at this codepath.
This commit is contained in:
Joffrey JAFFEUX
2025-01-31 16:21:19 +01:00
committed by GitHub
parent a6b136977c
commit 853564f859

View File

@@ -12,4 +12,10 @@ export default class Group extends DiscourseRoute {
serialize(model) {
return { name: model.get("name").toLowerCase() };
}
setupController(controller) {
super.setupController(...arguments);
controller.set("showTooltip", false);
}
}