Removed upload button on sharing and album page

This commit is contained in:
Alex 2022-08-26 10:05:15 -07:00
parent 44ccb1eec1
commit 33b810de74
No known key found for this signature in database
GPG Key ID: 53CD082B3A5E1082
3 changed files with 6 additions and 6 deletions

View File

@ -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')}

View File

@ -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 ">

View File

@ -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">