diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2024-07-13 16:51:16 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2024-07-16 09:18:33 +0200 |
commit | e42bceac9fc5845ad3614d3254bbb270e0d9d847 (patch) | |
tree | 53062f9f3ee11966417266a241c0f2800514c7ad /resources | |
parent | 70dd8d513bf73c8d56fea2aae4a02718a328f6e3 (diff) | |
download | nextcloud-server-e42bceac9fc5845ad3614d3254bbb270e0d9d847.tar.gz nextcloud-server-e42bceac9fc5845ad3614d3254bbb270e0d9d847.zip |
feat: hide caldav server settings if no app uses the caldav backend
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'resources')
-rw-r--r-- | resources/app-info-shipped.xsd | 7 | ||||
-rw-r--r-- | resources/app-info.xsd | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/resources/app-info-shipped.xsd b/resources/app-info-shipped.xsd index 2ad858af0f5..a340dde30bd 100644 --- a/resources/app-info-shipped.xsd +++ b/resources/app-info-shipped.xsd @@ -575,6 +575,8 @@ maxOccurs="1"/> <xs:element name="architecture" type="architecture" minOccurs="0" maxOccurs="unbounded"/> + <xs:element name="backend" type="backend" minOccurs="0" + maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> @@ -757,4 +759,9 @@ </xs:restriction> </xs:simpleType> + <xs:simpleType name="backend"> + <xs:restriction base="xs:string"> + <xs:enumeration value="caldav"/> + </xs:restriction> + </xs:simpleType> </xs:schema> diff --git a/resources/app-info.xsd b/resources/app-info.xsd index a0b9439e350..76cc02a8431 100644 --- a/resources/app-info.xsd +++ b/resources/app-info.xsd @@ -563,6 +563,8 @@ maxOccurs="1"/> <xs:element name="architecture" type="architecture" minOccurs="0" maxOccurs="unbounded"/> + <xs:element name="backend" type="backend" minOccurs="0" + maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> @@ -737,4 +739,10 @@ value="[a-zA-Z_][0-9a-zA-Z_]*(\\[a-zA-Z_][0-9a-zA-Z_]*)*"/> </xs:restriction> </xs:simpleType> + + <xs:simpleType name="backend"> + <xs:restriction base="xs:string"> + <xs:enumeration value="caldav"/> + </xs:restriction> + </xs:simpleType> </xs:schema> |