mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Message when previewing a hidden album
This commit is contained in:
parent
80742fffdb
commit
cfc3d29135
2 changed files with 9 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ if (!album) {
|
|||
<Input dark defaultValue={album.description} name='description' label='Description' className='col-span-3' />
|
||||
<Input dark name='cover' label='Cover image' type='file' />
|
||||
|
||||
<InputSelect dark name='status' label='Status' value={album.status}>
|
||||
<InputSelect dark name='status' label='Status' defaultValue={album.status}>
|
||||
<option value={AlbumStatus.HIDDEN}>Hidden</option>
|
||||
<option value={AlbumStatus.SHOW}>Show</option>
|
||||
</InputSelect>
|
||||
|
|
|
|||
|
|
@ -86,6 +86,14 @@ const coverImage = await getImage({
|
|||
meta: [{ name: 'theme-color', content: album?.headerColor }]
|
||||
}}
|
||||
/>
|
||||
|
||||
{album?.status === AlbumStatus.HIDDEN ? (
|
||||
<script>
|
||||
import toast from 'react-hot-toast'
|
||||
toast('This page is currently hidden', { duration: Infinity })
|
||||
</script>
|
||||
) : null}
|
||||
|
||||
<BaseLayout>
|
||||
<div
|
||||
class={`w-full min-h-100vh bg-fixed bg-center bg-cover`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue