From 0065b78cab430be62f00c63320e8c6abada1faf9 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 10 Oct 2025 18:57:55 +0200 Subject: [PATCH] backend button fields --- .../fields/types/cta_button_label.json | 20 ++++++++- .../snapshot/fields/types/show_address.json | 2 +- .../fields/types/show_cta_button.json | 45 +++++++++++++++++++ .../fields/types/show_navigation_button.json | 45 +++++++++++++++++++ .../snapshot/fields/types/show_qr_button.json | 45 +++++++++++++++++++ .../fields/types/show_share_button.json | 45 +++++++++++++++++++ 6 files changed, 199 insertions(+), 3 deletions(-) create mode 100644 backend/directus-config/development/snapshot/fields/types/show_cta_button.json create mode 100644 backend/directus-config/development/snapshot/fields/types/show_navigation_button.json create mode 100644 backend/directus-config/development/snapshot/fields/types/show_qr_button.json create mode 100644 backend/directus-config/development/snapshot/fields/types/show_share_button.json diff --git a/backend/directus-config/development/snapshot/fields/types/cta_button_label.json b/backend/directus-config/development/snapshot/fields/types/cta_button_label.json index 88994e8b..33a0d1f0 100644 --- a/backend/directus-config/development/snapshot/fields/types/cta_button_label.json +++ b/backend/directus-config/development/snapshot/fields/types/cta_button_label.json @@ -4,7 +4,23 @@ "type": "string", "meta": { "collection": "types", - "conditions": null, + "conditions": [ + { + "hidden": true, + "name": "show cta button", + "readonly": false, + "required": false, + "rule": { + "_and": [ + { + "show_cta_button": { + "_eq": false + } + } + ] + } + } + ], "display": null, "display_options": null, "field": "cta_button_label", @@ -15,7 +31,7 @@ "options": null, "readonly": false, "required": false, - "sort": 1, + "sort": 6, "special": null, "translations": null, "validation": null, diff --git a/backend/directus-config/development/snapshot/fields/types/show_address.json b/backend/directus-config/development/snapshot/fields/types/show_address.json index 2522c095..0d9cdb20 100644 --- a/backend/directus-config/development/snapshot/fields/types/show_address.json +++ b/backend/directus-config/development/snapshot/fields/types/show_address.json @@ -15,7 +15,7 @@ "options": null, "readonly": false, "required": false, - "sort": 2, + "sort": 1, "special": [ "cast-boolean" ], diff --git a/backend/directus-config/development/snapshot/fields/types/show_cta_button.json b/backend/directus-config/development/snapshot/fields/types/show_cta_button.json new file mode 100644 index 00000000..a57a98d6 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/types/show_cta_button.json @@ -0,0 +1,45 @@ +{ + "collection": "types", + "field": "show_cta_button", + "type": "boolean", + "meta": { + "collection": "types", + "conditions": null, + "display": null, + "display_options": null, + "field": "show_cta_button", + "group": "Header", + "hidden": false, + "interface": "boolean", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 5, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "show_cta_button", + "table": "types", + "data_type": "boolean", + "default_value": false, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/types/show_navigation_button.json b/backend/directus-config/development/snapshot/fields/types/show_navigation_button.json new file mode 100644 index 00000000..ab9881f8 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/types/show_navigation_button.json @@ -0,0 +1,45 @@ +{ + "collection": "types", + "field": "show_navigation_button", + "type": "boolean", + "meta": { + "collection": "types", + "conditions": null, + "display": null, + "display_options": null, + "field": "show_navigation_button", + "group": "Header", + "hidden": false, + "interface": "boolean", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 4, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "show_navigation_button", + "table": "types", + "data_type": "boolean", + "default_value": false, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/types/show_qr_button.json b/backend/directus-config/development/snapshot/fields/types/show_qr_button.json new file mode 100644 index 00000000..b0e4308d --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/types/show_qr_button.json @@ -0,0 +1,45 @@ +{ + "collection": "types", + "field": "show_qr_button", + "type": "boolean", + "meta": { + "collection": "types", + "conditions": null, + "display": null, + "display_options": null, + "field": "show_qr_button", + "group": "Header", + "hidden": false, + "interface": "boolean", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 2, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "show_qr_button", + "table": "types", + "data_type": "boolean", + "default_value": false, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/types/show_share_button.json b/backend/directus-config/development/snapshot/fields/types/show_share_button.json new file mode 100644 index 00000000..5aa4c03d --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/types/show_share_button.json @@ -0,0 +1,45 @@ +{ + "collection": "types", + "field": "show_share_button", + "type": "boolean", + "meta": { + "collection": "types", + "conditions": null, + "display": null, + "display_options": null, + "field": "show_share_button", + "group": "Header", + "hidden": false, + "interface": "boolean", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 3, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "show_share_button", + "table": "types", + "data_type": "boolean", + "default_value": false, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +}