You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Library: Incorrect snackbar text and sidebar menu when removing template/template part #51969
changed the title [-]Library: Incorrect snackbar text and sidebar menu when removing template parts[/-][+]Library: Incorrect snackbar text and sidebar menu when removing template/template part[/+]on Jun 28, 2023
It appears that the entity record received when deleting via the List page vs the command palette is slightly different.
On the List page, the record contains a template.title.rendered property which is what the removeTemplate action expects, hence the correct snackbar notice there. The record passed on from the command palette only contains a simple string for the template.title property.
I haven't put my finger on why there's a difference just yet but will keep digging.
Activity
[-]Library: Incorrect snackbar text and sidebar menu when removing template parts[/-][+]Library: Incorrect snackbar text and sidebar menu when removing template/template part[/+]t-hamano commentedon Jun 28, 2023
I have confirmed that this problem occurs with template as well as template part.
7be1728d8ee8385e5d29ee0d172e81c8.mp4
aaronrobertshaw commentedon Jun 29, 2023
It appears that the entity record received when deleting via the List page vs the command palette is slightly different.
On the List page, the record contains a
template.title.renderedproperty which is what theremoveTemplateaction expects, hence the correct snackbar notice there. The record passed on from the command palette only contains a simple string for thetemplate.titleproperty.I haven't put my finger on why there's a difference just yet but will keep digging.
aaronrobertshaw commentedon Jun 30, 2023
This was fixed in #52034.