mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 00:48:05 +08:00
DEV: Add hidden option to disable the lazy-yt plugin (#19448)
This commit is contained in:
3
plugins/lazy-yt/config/locales/server.en.yml
Normal file
3
plugins/lazy-yt/config/locales/server.en.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
en:
|
||||||
|
site_settings:
|
||||||
|
lazy_yt_enabled: "Enable the LazyYT plugin"
|
5
plugins/lazy-yt/config/settings.yml
Normal file
5
plugins/lazy-yt/config/settings.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
plugins:
|
||||||
|
lazy_yt_enabled:
|
||||||
|
default: true
|
||||||
|
client: false
|
||||||
|
hidden: true
|
@ -7,6 +7,7 @@
|
|||||||
# url: https://github.com/discourse/discourse/tree/main/plugins/lazy-yt
|
# url: https://github.com/discourse/discourse/tree/main/plugins/lazy-yt
|
||||||
|
|
||||||
hide_plugin if self.respond_to?(:hide_plugin)
|
hide_plugin if self.respond_to?(:hide_plugin)
|
||||||
|
enabled_site_setting :lazy_yt_enabled
|
||||||
|
|
||||||
require "onebox"
|
require "onebox"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user