change ui for delete backend
This commit is contained in:
@@ -56,10 +56,12 @@ class Settings::CashierTerminalsController < ApplicationController
|
||||
# DELETE /settings/cashier_terminals/1.json
|
||||
def destroy
|
||||
@settings_cashier_terminal.destroy
|
||||
respond_to do |format|
|
||||
format.html { redirect_to settings_cashier_terminals_path, notice: 'Cashier terminal was successfully destroyed.' }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
flash[:notice] = 'Cashier terminal was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_cashier_terminals_path }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to settings_cashier_terminals_path, notice: 'Cashier terminal was successfully destroyed.' }
|
||||
# format.json { head :no_content }
|
||||
# end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user