Skip to content

Commit 0eee3cf

Browse files
authored
Merge pull request #2235 from appwrite/feat-SER-270-remove-feature-flag-checks
2 parents 307a1e8 + 46a9587 commit 0eee3cf

2 files changed

Lines changed: 7 additions & 17 deletions

File tree

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
import { type Attributes, collection, indexes } from '../store';
1515
import { Icon, Layout } from '@appwrite.io/pink-svelte';
1616
import { IconPlus } from '@appwrite.io/pink-icons-svelte';
17-
import { flags } from '$lib/flags';
18-
1917
export let showCreateIndex = false;
2018
export let externalAttribute: Attributes = null;
2119
@@ -39,8 +37,6 @@
3937
4038
let attributeList = [{ value: '', order: '', length: null }];
4139
42-
const showLengths = flags.showIndexLengths(page.data);
43-
4440
function generateIndexKey() {
4541
let indexKeys = $indexes.map((index) => index.key);
4642
@@ -152,7 +148,7 @@
152148
placeholder="Select Order" />
153149

154150
<Layout.Stack direction="row" alignItems="flex-end" gap="xs">
155-
{#if selectedType === IndexType.Key && showLengths}
151+
{#if selectedType === IndexType.Key}
156152
<InputNumber
157153
id={`length-${i}`}
158154
label={i === 0 ? 'Length' : undefined}

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/indexes/overviewIndex.svelte

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
import { InputText } from '$lib/elements/forms';
44
import { Layout } from '@appwrite.io/pink-svelte';
55
import type { Models } from '@appwrite.io/console';
6-
import { page } from '$app/state';
7-
import { flags } from '$lib/flags';
86
97
export let showOverview = false;
108
export let selectedIndex: Models.Index = null;
11-
12-
const showLengths = flags.showIndexLengths(page.data);
139
</script>
1410

1511
<Modal title="Overview" bind:show={showOverview}>
@@ -43,14 +39,12 @@
4339
id={`value-${selectedIndex.orders[i]}`}
4440
value={selectedIndex.orders[i]}
4541
readonly />
46-
{#if showLengths}
47-
<InputText
48-
required
49-
label={i === 0 ? 'Length' : ''}
50-
id={`value-${selectedIndex.lengths[i]}`}
51-
value={selectedIndex.lengths[i]?.toString() ?? null}
52-
readonly />
53-
{/if}
42+
<InputText
43+
required
44+
label={i === 0 ? 'Length' : ''}
45+
id={`value-${selectedIndex.lengths[i]}`}
46+
value={selectedIndex.lengths[i]?.toString() ?? null}
47+
readonly />
5448
</Layout.Stack>
5549
{/each}
5650
{/if}

0 commit comments

Comments
 (0)