Skip to content

Commit

Permalink
Merge pull request #374 from qor5/merge-query-change-lang
Browse files Browse the repository at this point in the history
presets: merge query when change language
  • Loading branch information
molon authored Jul 30, 2024
2 parents 1392464 + 2a36f57 commit 036a719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presets/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func (b *Builder) RunSwitchLanguageFunc(ctx *web.EventContext) (r h.HTMLComponen
),
).Class("pa-0").Density(DensityCompact),
).Class("pa-0 ma-n4 mt-n6"),
).Attr("@click", web.Plaid().Query(queryName, supportLanguages[0].String()).Go()),
).Attr("@click", web.Plaid().MergeQuery(true).Query(queryName, supportLanguages[0].String()).Go()),
)
}

Expand All @@ -701,7 +701,7 @@ func (b *Builder) RunSwitchLanguageFunc(ctx *web.EventContext) (r h.HTMLComponen
VListItemTitle(
h.Div(h.Text(display.Self.Name(tag))),
),
).Attr("@click", web.Plaid().Query(queryName, tag.String()).Go()),
).Attr("@click", web.Plaid().MergeQuery(true).Query(queryName, tag.String()).Go()),
),
)
}
Expand Down

0 comments on commit 036a719

Please sign in to comment.