fix(docs-infra): use separate templates for the from and to selectors in update guide (#55992)

Use separate template names for the from and to selector dropdowns, otherwise we are only able to change the from value.

PR Close #55992
This commit is contained in:
Joey Perrott 2024-05-22 15:08:06 +00:00
parent ef96158899
commit 3ac0511aad

View file

@ -10,12 +10,12 @@
<span class="adev-template-select">
From v.
<button [cdkMenuTriggerFor]="templatesMenu">
<button [cdkMenuTriggerFor]="templatesMenuFrom">
<span>{{ from.name }}</span>
<docs-icon>expand_more</docs-icon>
</button>
<ng-template #templatesMenu>
<ng-template #templatesMenuFrom>
<ul class="adev-template-dropdown" cdkMenu>
@for (version of versions; track $index) {
<li>
@ -31,12 +31,12 @@
<span>
<span class="adev-template-select">
To v.
<button [cdkMenuTriggerFor]="templatesMenu">
<button [cdkMenuTriggerFor]="templatesMenuTo">
<span>{{ to.name }}</span>
<docs-icon>expand_more</docs-icon>
</button>
<ng-template #templatesMenu>
<ng-template #templatesMenuTo>
<ul class="adev-template-dropdown" cdkMenu>
@for (version of versions; track $index) {
<li>