1
0
mirror of https://github.com/immich-app/immich.git synced 2025-01-12 15:32:36 +02:00

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">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import type { ImmichUser } from '$lib/models/immich-user';
import { createEventDispatcher, onMount } from 'svelte';
import { fade, fly, slide } from 'svelte/transition';
import TrayArrowUp from 'svelte-material-icons/TrayArrowUp.svelte';
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 shouldShowProfileImage = false;
@ -60,7 +60,7 @@
/>
</div>
<section class="flex gap-4 place-items-center">
{#if $page.url.pathname !== '/admin'}
{#if $page.url.pathname !== '/admin' && shouldShowUploadButton}
<button
in:fly={{ x: 50, duration: 250 }}
on:click={() => dispatch('uploadClicked')}

View File

@ -88,7 +88,7 @@
</svelte:head>
<section>
<NavigationBar user={data.user} on:uploadClicked={() => {}} />
<NavigationBar user={data.user} shouldShowUploadButton={false} />
</section>
<section class="grid grid-cols-[250px_auto] relative pt-[72px] h-screen bg-immich-bg ">

View File

@ -27,7 +27,7 @@
</svelte:head>
<section>
<NavigationBar user={data.user} on:uploadClicked={() => {}} />
<NavigationBar user={data.user} shouldShowUploadButton={false} />
</section>
<section class="grid grid-cols-[250px_auto] relative pt-[72px] h-screen bg-immich-bg">