Improve client proofing workflow and link editing
This commit is contained in:
@@ -108,8 +108,10 @@ function CreateForm({ onCreated }: { onCreated: () => void }) {
|
||||
maxLength={120}
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="admin-field">
|
||||
<label htmlFor="proof-alias">Client URL alias (optional)</label>
|
||||
<label htmlFor="proof-alias">Client URL alias</label>
|
||||
<input
|
||||
id="proof-alias"
|
||||
value={alias}
|
||||
@@ -120,11 +122,11 @@ function CreateForm({ onCreated }: { onCreated: () => void }) {
|
||||
.replace(/[^A-Za-z0-9-]/g, ''),
|
||||
)
|
||||
}
|
||||
placeholder="Client"
|
||||
placeholder="Client (Optional)"
|
||||
maxLength={64}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="admin-field">
|
||||
<label htmlFor="proof-album">Album</label>
|
||||
<select
|
||||
@@ -134,7 +136,10 @@ function CreateForm({ onCreated }: { onCreated: () => void }) {
|
||||
required
|
||||
disabled={!albums}
|
||||
>
|
||||
<option value="">{albums ? 'Choose an Immich album…' : 'Loading albums…'}</option>
|
||||
<option value="">
|
||||
{albums ? 'Choose an Immich album…' : 'Loading albums…'}
|
||||
</option>
|
||||
|
||||
{albums?.map((album) => (
|
||||
<option key={album.id} value={album.id}>
|
||||
{album.albumName} ({album.assetCount})
|
||||
@@ -142,6 +147,7 @@ function CreateForm({ onCreated }: { onCreated: () => void }) {
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div className="admin-field">
|
||||
<label htmlFor="proof-expires">Valid until (optional)</label>
|
||||
<input
|
||||
@@ -151,9 +157,9 @@ function CreateForm({ onCreated }: { onCreated: () => void }) {
|
||||
onChange={(e) => setExpiresOn(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="admin-field">
|
||||
<label htmlFor="proof-download">Downloads</label>
|
||||
|
||||
<select
|
||||
id="proof-download"
|
||||
value={downloadsAllowed ? 'allowed' : 'none'}
|
||||
@@ -161,10 +167,11 @@ function CreateForm({ onCreated }: { onCreated: () => void }) {
|
||||
setDownloadsAllowed(e.target.value === 'allowed')
|
||||
}
|
||||
>
|
||||
<option value="none">No downloads</option>
|
||||
<option value="none">Downloads disabled</option>
|
||||
<option value="allowed">Downloads allowed</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{downloadsAllowed && (
|
||||
<div className="admin-field">
|
||||
<label htmlFor="proof-limit">Download limit (optional)</label>
|
||||
|
||||
Reference in New Issue
Block a user