mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 09:40:13 +00:00
feat(service): replace show-in-service with hide-for-guest toggle
Mirror the server HideForGuest flag on services: rename the enable_show_in_service field to hide_for_guest across the form, schema and generated types, reuse the existing HideForGuest label, and drop the now-orphaned ShowInService i18n keys. Services are now visible to guests by default and hidden only when the box is checked, matching servers.
This commit is contained in:
+3
-2
@@ -631,10 +631,11 @@ export interface ModelService {
|
||||
/** 展示排序,越大越靠前 */
|
||||
display_index: number
|
||||
duration: number
|
||||
enable_show_in_service: boolean
|
||||
enable_trigger_task: boolean
|
||||
/** 失败时执行的触发任务id */
|
||||
fail_trigger_tasks: number[]
|
||||
/** 对游客隐藏 */
|
||||
hide_for_guest: boolean
|
||||
id: number
|
||||
latency_notify: boolean
|
||||
max_latency: number
|
||||
@@ -656,9 +657,9 @@ export interface ModelServiceForm {
|
||||
/** 展示排序,越大越靠前 */
|
||||
display_index: number
|
||||
duration: number
|
||||
enable_show_in_service?: boolean
|
||||
enable_trigger_task?: boolean
|
||||
fail_trigger_tasks: number[]
|
||||
hide_for_guest?: boolean
|
||||
latency_notify?: boolean
|
||||
/** @default 0 */
|
||||
max_latency: number
|
||||
|
||||
Reference in New Issue
Block a user