Added toggle option for Application superapp in admin settings

• Added:
- toggle option for Application superapp in admin settings
This commit is contained in:
mgabdev 2020-12-04 12:28:32 -05:00
parent 4c4193fa09
commit 2f798ca1bd
2 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class Settings::ApplicationsController < Settings::BaseController
def application_params def application_params
params.require(:doorkeeper_application).permit( params.require(:doorkeeper_application).permit(
:name, :name,
:superapp,
:redirect_uri, :redirect_uri,
:scopes, :scopes,
:website :website

View File

@ -24,6 +24,12 @@
%hr/ %hr/
= simple_form_for @application, url: settings_application_path(@application), method: :put do |f| = simple_form_for @application, url: settings_application_path(@application), method: :put do |f|
- if current_user.staff?
.fields-row
.fields-row__column.fields-group
= f.input 'superapp', as: :boolean, wrapper: :with_label, hint: false
%hr/
= render 'fields', f: f = render 'fields', f: f
.actions .actions