mirror of
https://github.com/immich-app/immich.git
synced 2025-06-03 05:34:32 -04:00
Removed upload button on sharing and album page
This commit is contained in:
parent
44ccb1eec1
commit
33b810de74
@ -1,14 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import type { ImmichUser } from '$lib/models/immich-user';
|
|
||||||
import { createEventDispatcher, onMount } from 'svelte';
|
import { createEventDispatcher, onMount } from 'svelte';
|
||||||
import { fade, fly, slide } from 'svelte/transition';
|
import { fade, fly, slide } from 'svelte/transition';
|
||||||
import TrayArrowUp from 'svelte-material-icons/TrayArrowUp.svelte';
|
import TrayArrowUp from 'svelte-material-icons/TrayArrowUp.svelte';
|
||||||
import { clickOutside } from '../../utils/click-outside';
|
import { clickOutside } from '../../utils/click-outside';
|
||||||
import { api } from '@api';
|
import { api, UserResponseDto } from '@api';
|
||||||
|
|
||||||
export let user: ImmichUser;
|
export let user: UserResponseDto;
|
||||||
|
export let shouldShowUploadButton = true;
|
||||||
|
|
||||||
let shouldShowAccountInfo = false;
|
let shouldShowAccountInfo = false;
|
||||||
let shouldShowProfileImage = false;
|
let shouldShowProfileImage = false;
|
||||||
@ -60,7 +60,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<section class="flex gap-4 place-items-center">
|
<section class="flex gap-4 place-items-center">
|
||||||
{#if $page.url.pathname !== '/admin'}
|
{#if $page.url.pathname !== '/admin' && shouldShowUploadButton}
|
||||||
<button
|
<button
|
||||||
in:fly={{ x: 50, duration: 250 }}
|
in:fly={{ x: 50, duration: 250 }}
|
||||||
on:click={() => dispatch('uploadClicked')}
|
on:click={() => dispatch('uploadClicked')}
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<NavigationBar user={data.user} on:uploadClicked={() => {}} />
|
<NavigationBar user={data.user} shouldShowUploadButton={false} />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="grid grid-cols-[250px_auto] relative pt-[72px] h-screen bg-immich-bg ">
|
<section class="grid grid-cols-[250px_auto] relative pt-[72px] h-screen bg-immich-bg ">
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<NavigationBar user={data.user} on:uploadClicked={() => {}} />
|
<NavigationBar user={data.user} shouldShowUploadButton={false} />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="grid grid-cols-[250px_auto] relative pt-[72px] h-screen bg-immich-bg">
|
<section class="grid grid-cols-[250px_auto] relative pt-[72px] h-screen bg-immich-bg">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user