fix(banner): clique no nome navega pra conversa (snake_case param)
O openConversation passava `conversationId` (camelCase) como param do $router.push, mas a rota `inbox_conversation` declara `:conversation_id` (snake_case). Vue Router ignorava o param e route.params.conversation_id ficava undefined → tela "selecione uma conversa no painel". Fix: passar `conversation_id` snake_case (mesmo padrão dos demais callsites: SLAReportItem, captain/responses/Pending). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f4255cff97
commit
a14fd4ed83
@ -119,11 +119,17 @@ export default {
|
||||
openConversation(alert) {
|
||||
// Clica no item → abre conversa E esconde o alerta dela (mas se
|
||||
// não responder, volta a aparecer no próximo threshold).
|
||||
// Param tem que ser `conversation_id` (snake_case, como
|
||||
// declarado no path da rota); camelCase faz Vue Router não casar
|
||||
// e cair em "selecione uma conversa".
|
||||
aggressiveAlert.dismiss(alert.id);
|
||||
if (!this.currentAccountId) return;
|
||||
this.$router.push({
|
||||
name: 'inbox_conversation',
|
||||
params: { accountId: this.currentAccountId, conversationId: alert.id },
|
||||
params: {
|
||||
accountId: this.currentAccountId,
|
||||
conversation_id: alert.id,
|
||||
},
|
||||
});
|
||||
},
|
||||
dismissOne(alert) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user