1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-23 04:38:12 +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
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')}