Categorise Web Push Subscriptions in Rails Admin
This commit is contained in:
parent
39ec2836f6
commit
ffb849047f
|
@ -77,7 +77,8 @@ RailsAdmin.config do |config|
|
||||||
"Services::Twitter" => "dumpster-fire",
|
"Services::Twitter" => "dumpster-fire",
|
||||||
"Theme" => "paint-brush",
|
"Theme" => "paint-brush",
|
||||||
"User" => "user",
|
"User" => "user",
|
||||||
"UserBan" => "user-lock"
|
"UserBan" => "user-lock",
|
||||||
|
"WebPushSubscription" => "dot-circle"
|
||||||
}.each do |model, icon|
|
}.each do |model, icon|
|
||||||
config.model model do
|
config.model model do
|
||||||
navigation_icon "fa fa-fw fa-#{icon} me-1"
|
navigation_icon "fa fa-fw fa-#{icon} me-1"
|
||||||
|
@ -86,17 +87,18 @@ RailsAdmin.config do |config|
|
||||||
|
|
||||||
# set up custom parents for certain models to group them nicely together
|
# set up custom parents for certain models to group them nicely together
|
||||||
{
|
{
|
||||||
"AnonymousBlock" => User,
|
"AnonymousBlock" => User,
|
||||||
"Inbox" => User,
|
"Inbox" => User,
|
||||||
"List" => User,
|
"List" => User,
|
||||||
"MuteRule" => User,
|
"MuteRule" => User,
|
||||||
"Notification" => User,
|
"Notification" => User,
|
||||||
"Profile" => User,
|
"Profile" => User,
|
||||||
"Relationship" => User,
|
"Relationship" => User,
|
||||||
"Service" => User,
|
"Service" => User,
|
||||||
"Theme" => User,
|
"Theme" => User,
|
||||||
|
"WebPushSubscription" => User,
|
||||||
|
|
||||||
"ListMember" => List
|
"ListMember" => List
|
||||||
}.each do |model, parent_model|
|
}.each do |model, parent_model|
|
||||||
config.model model do
|
config.model model do
|
||||||
parent parent_model
|
parent parent_model
|
||||||
|
|
Loading…
Reference in New Issue