diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 0b2252d7..b78c54ad 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -9,6 +9,11 @@ class AccountsController < ApplicationController render layout: "settings" end + def sync_all + family.sync_later + redirect_to accounts_path, notice: "Syncing accounts..." + end + def show @chart_view = params[:chart_view] || "balance" @tab = params[:tab] diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb index ff45d33f..3557ceb8 100644 --- a/app/views/accounts/index.html.erb +++ b/app/views/accounts/index.html.erb @@ -2,6 +2,14 @@