mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-27 17:19:39 +02:00
Fix valuation frame issue (#1162)
This commit is contained in:
parent
eebc07d75e
commit
cb13fd2245
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class Account::ValuationsController < ApplicationController
|
||||||
|
|
||||||
if @entry.save
|
if @entry.save
|
||||||
@entry.sync_account_later
|
@entry.sync_account_later
|
||||||
redirect_to account_valuations_path(@account), notice: t(".success")
|
redirect_back_or_to account_valuations_path(@account), notice: t(".success")
|
||||||
else
|
else
|
||||||
flash[:alert] = @entry.errors.full_messages.to_sentence
|
flash[:alert] = @entry.errors.full_messages.to_sentence
|
||||||
redirect_to account_path(@account)
|
redirect_to account_path(@account)
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<div class="col-span-1 justify-self-end">
|
<div class="col-span-1 justify-self-end">
|
||||||
<%= contextual_menu do %>
|
<%= contextual_menu do %>
|
||||||
<div class="w-48 p-1 text-sm leading-6 text-gray-900 bg-white shadow-lg shrink rounded-xl ring-1 ring-gray-900/5">
|
<div class="w-48 p-1 text-sm leading-6 text-gray-900 bg-white shadow-lg shrink rounded-xl ring-1 ring-gray-900/5">
|
||||||
<%= contextual_menu_modal_action_item t(".edit_entry"), edit_account_entry_path(account, entry) %>
|
<%= contextual_menu_modal_action_item t(".edit_entry"), edit_account_entry_path(account, entry), turbo_frame: dom_id(entry) %>
|
||||||
|
|
||||||
<%= contextual_menu_destructive_item t(".delete_entry"),
|
<%= contextual_menu_destructive_item t(".delete_entry"),
|
||||||
account_entry_path(account, entry),
|
account_entry_path(account, entry),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue