Added toggle option for Application superapp in admin settings
• Added: - toggle option for Application superapp in admin settings
This commit is contained in:
parent
4c4193fa09
commit
2f798ca1bd
|
@ -60,6 +60,7 @@ class Settings::ApplicationsController < Settings::BaseController
|
|||
def application_params
|
||||
params.require(:doorkeeper_application).permit(
|
||||
:name,
|
||||
:superapp,
|
||||
:redirect_uri,
|
||||
:scopes,
|
||||
:website
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
%hr/
|
||||
|
||||
= 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
|
||||
|
||||
.actions
|
||||
|
|
Loading…
Reference in New Issue