Skip to content

Commit

Permalink
Convert chargeback assignment tabs to react
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertCherrie committed Jan 17, 2024
1 parent 782516c commit 1a683db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/controllers/chargeback_assignment_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def index
assert_privileges("chargeback_assignments")

@tabform = ChargebackRate::VALID_CB_RATE_TYPES.include?(params[:tab]) ? params[:tab] : "Compute"
tab_vars(@tabform)
session[:changed] = @changed = false
build_tabs
set_form_vars
Expand All @@ -25,11 +26,17 @@ def change_tab

clear_flash_msg
@tabform = params['uib-tab']
tab_vars(params['uib-tab'])
build_tabs
set_form_vars
render :action => "index"
end

def tab_vars(current_tab)
@path = '/chargeback_assignment/change_tab/'
@current_tab = current_tab.to_s
end

# AJAX driven routine to check for changes in ANY field on the form
def form_field_changed
assert_privileges("chargeback_assignments")
Expand Down

0 comments on commit 1a683db

Please sign in to comment.