mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 09:43:40 +08:00
963b9fd157
UI for admins to disable system flags.
12 lines
256 B
Ruby
12 lines
256 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class AdminFlags < PageObjects::Pages::Base
|
|
def toggle(key)
|
|
PageObjects::Components::DToggleSwitch.new(".admin-flag-item__toggle.#{key}").toggle
|
|
end
|
|
end
|
|
end
|
|
end
|