Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: search #145

Merged
merged 1 commit into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</Button>
</SearchQuery>

{#if data.files.total && !data.search}
{#if data.files.total}
<Table>
<TableHeader>
<TableCellHead>Filename</TableCellHead>
Expand All @@ -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
Expand Down Expand Up @@ -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]}
Expand Down Expand Up @@ -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>
Expand Down