Merge branches 'feat-0-14-x' and 'main' of https://github.com/appwrite/appwrite-console-poc into feat-0-14-x

This commit is contained in:
Torsten Dittmann committed 2022-05-18 10:58:37 +02:00
commit 80db6aea48
3 files changed
+8 -3

No files matched your search

+4 -2
View File
@@ -23,7 +23,7 @@
<div class="main-header-end">
<nav class="u-flex is-only-desktop" />
<nav class="user-profile">
{#if $user && $project}
{#if $user}
<DropList bind:show={showDropdown} position="bottom" horizontal="left" arrow={false}>
<button class="user-profile-button" on:click={() => (showDropdown = !showDropdown)}>
<Avatar
@@ -32,7 +32,9 @@
src={sdkForConsole.avatars.getInitials($user.name, 50, 50).toString()} />
<span class="user-profile-info is-only-desktop">
<span class="name">{$user.name}</span>
<span class="title">{$project.name}</span>
{#if $project}
<span class="title">{$project.name}</span>
{/if}
</span>
<span
class="is-only-desktop"
@@ -66,7 +66,7 @@
</TableCell>
<TableCellLink
title="ID"
href={`${base}/console/${project}/users/teams/team/${team.$id}`}>
href={`${base}/console/${project}/users/teams/${team.$id}`}>
{team.name}
</TableCellLink>
<TableCellText title="Members">{team.total}</TableCellText>
+3
View File
@@ -23,6 +23,7 @@ test('hide drop list on body click', async () => {
const dropList = document.querySelector('ul');
await fireEvent.click(body);
await new Promise((r) => setTimeout(r, 200));
expect(dropList).not.toBeInTheDocument();
});
@@ -32,6 +33,7 @@ test('hide drop list on wrapper click', async () => {
const dropList = document.querySelector('ul');
await fireEvent.click(wrapper);
await new Promise((r) => setTimeout(r, 200));
expect(dropList).not.toBeInTheDocument();
});
@@ -40,5 +42,6 @@ test('drop list visible on list click', async () => {
const dropList = document.querySelector('ul');
await fireEvent.click(dropList);
await new Promise((r) => setTimeout(r, 200));
expect(dropList).toBeInTheDocument();
});