change ui for delete backend
This commit is contained in:
@@ -58,10 +58,13 @@ class Settings::MenusController < ApplicationController
|
||||
def destroy
|
||||
# @settings_menu.destroy
|
||||
abc = Menu.destroyMenu(@settings_menu)
|
||||
respond_to do |format|
|
||||
format.html { redirect_to settings_menus_path, notice: 'Menu was successfully destroyed.' }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
@settings_menu_item_set.destroy
|
||||
flash[:notice] = 'Menu was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_menus_path }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to settings_menus_path, notice: 'Menu was successfully destroyed.' }
|
||||
# format.json { head :no_content }
|
||||
# end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user