From 91945257fd05f646a7399ef0ffcde714d29ddc64 Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 28 Mar 2023 15:19:38 +0200 Subject: [PATCH] fix: capitalization >.< --- .../collection-[collection]/+page.svelte | 1 - .../attributes/relationship.svelte | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+page.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+page.svelte index 29fb3762f..a3fdab06a 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+page.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+page.svelte @@ -34,7 +34,6 @@ $: hasAttributes = !!$collection.attributes.length; - //Check if $collection.attributes has any attribute without status deleting, stuck or failed $: hasValidAttributes = $collection?.attributes?.some((attr) => attr.status === 'available'); diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte index 1cab73547..df2354425 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte @@ -52,17 +52,17 @@ // Constants const databaseId = $page.params.database; const oneWay = [ - { value: 'onetoone', label: 'One to one' }, - { value: 'onetomany', label: 'One to many' } + { value: 'oneToOne', label: 'One to one' }, + { value: 'oneToMany', label: 'One to many' } ]; const twoWay = [ ...oneWay, - { value: 'manytoone', label: 'Many to one' }, - { value: 'manytomany', label: 'Many to many' } + { value: 'manyToOne', label: 'Many to one' }, + { value: 'manyToMany', label: 'Many to many' } ]; const deleteOptions = [ - { value: 'setnull', label: 'Null' }, + { value: 'setNull', label: 'Null' }, { value: 'cascade', label: 'Cascade' }, { value: 'restrict', label: 'Restrict' } ];