Merge pull request #145 from appwrite/fix-search

fix: search
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2022-11-15 13:41:55 +01:00
commit 435bd120c9
3 files changed
+15 -11

No files matched your search

@@ -42,7 +42,7 @@
<span class="text">Create membership</span>
</Button>
</SearchQuery>
{#if data.memberships.total && !data.search}
{#if data.memberships.total}
<Table>
<TableHeader>
<TableCellHead>Name</TableCellHead>
@@ -38,13 +38,13 @@
name: 'My Android App',
hostname: 'com.company.appname',
tooltip:
"You can find your Bundle Identifier in the General tab for your app's primary target in Xcode."
'Your package name is generally the applicationId in your app-level build.gradle file.'
},
[Platform.Ios]: {
name: 'My iOS App',
hostname: 'com.company.appname',
tooltip:
'Your package name is generally the applicationId in your app-level build.gradle file.'
"You can find your Bundle Identifier in the General tab for your app's primary target in Xcode."
},
[Platform.Linux]: {
name: 'My Linux App',
@@ -82,7 +82,7 @@
</Button>
</SearchQuery>
{#if data.files.total && !data.search}
{#if data.files.total}
<Table>
<TableHeader>
<TableCellHead>Filename</TableCellHead>
@@ -106,10 +106,12 @@
</div>
</TableCell>
<TableCellText title="Type">{file.mimeType}</TableCellText>
<TableCellText title="Size"
>{calculateSize(file.sizeOriginal)}</TableCellText>
<TableCellText title="Date Created"
>{toLocaleDate(file.$createdAt)}</TableCellText>
<TableCellText title="Size">
{calculateSize(file.sizeOriginal)}
</TableCellText>
<TableCellText title="Date Created">
{toLocaleDate(file.$createdAt)}
</TableCellText>
<TableCell>
<div class="u-flex u-main-center">
<button
@@ -140,9 +142,11 @@
</TableCell>
<TableCellText title="Type">{file.mimeType}</TableCellText>
<TableCellText title="Size">
{calculateSize(file.sizeOriginal)}</TableCellText>
{calculateSize(file.sizeOriginal)}
</TableCellText>
<TableCellText title="Date Created">
{toLocaleDate(file.$createdAt)}</TableCellText>
{toLocaleDate(file.$createdAt)}
</TableCellText>
<TableCell showOverflow>
<DropList
bind:show={showDropdown[index]}
@@ -182,7 +186,7 @@
offset={data.offset}
sum={data.files.total} />
</div>
{:else if data.search && !data.files.total}
{:else if data.search}
<EmptySearch>
<div class="u-text-center">
<b>Sorry, we couldn’t find ‘{data.search}’</b>