fix(dashboard): fix public profile page links
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
export let isPublic: boolean;
|
||||
export let itemType: string;
|
||||
export let isMainDash: boolean;
|
||||
export let itemsPerPage: number;
|
||||
export let currentPage: number;
|
||||
export let fullLength: number;
|
||||
@@ -31,7 +30,7 @@
|
||||
function getItemLink(item: Member | Group): string {
|
||||
let url: string;
|
||||
|
||||
if (isMainDash) url = "/dash/";
|
||||
if (!isPublic) url = "/dash/";
|
||||
else url = "/profile/";
|
||||
|
||||
if (itemType === "member") url += "m/";
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
$: slicedList = processedList.slice(indexOfFirstItem, indexOfLastItem);
|
||||
|
||||
export let isPublic: boolean;
|
||||
export let isMainDash = true;
|
||||
export let itemType: string;
|
||||
|
||||
let searchValue: string = "";
|
||||
@@ -132,6 +131,6 @@
|
||||
<NewGroup on:create={addItemToList} />
|
||||
{/if}
|
||||
{/if}
|
||||
<CardsList on:deletion bind:list={slicedList} bind:groups bind:members isMainDash={isMainDash} isPublic={isPublic} itemType={itemType} itemsPerPage={itemsPerPage} currentPage={currentPage} fullLength={list.length} />
|
||||
<CardsList on:deletion bind:list={slicedList} bind:groups bind:members isPublic={isPublic} itemType={itemType} itemsPerPage={itemsPerPage} currentPage={currentPage} fullLength={list.length} />
|
||||
<ListPagination bind:currentPage {pageAmount} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user