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
|
def application_params
|
||||||
params.require(:doorkeeper_application).permit(
|
params.require(:doorkeeper_application).permit(
|
||||||
:name,
|
:name,
|
||||||
|
:superapp,
|
||||||
:redirect_uri,
|
:redirect_uri,
|
||||||
:scopes,
|
:scopes,
|
||||||
:website
|
:website
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user