mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-09 01:26:24 +01:00
Relayout the previous catchups list
This commit is contained in:
parent
beed3ca18c
commit
7ab6da5e9b
1 changed files with 22 additions and 20 deletions
|
@ -713,28 +713,30 @@ function Catchup() {
|
||||||
{formatRange(
|
{formatRange(
|
||||||
new Date(pc.startAt),
|
new Date(pc.startAt),
|
||||||
new Date(pc.endAt),
|
new Date(pc.endAt),
|
||||||
)}{' '}
|
)}
|
||||||
<small class="ib insignificant">
|
|
||||||
{pc.count} posts
|
|
||||||
</small>
|
|
||||||
</span>
|
</span>
|
||||||
</Link>{' '}
|
</Link>{' '}
|
||||||
<button
|
<span>
|
||||||
type="button"
|
<small class="ib insignificant">
|
||||||
class="light danger small"
|
{pc.count} posts
|
||||||
onClick={async () => {
|
</small>{' '}
|
||||||
const yes = confirm('Remove this catch-up?');
|
<button
|
||||||
if (yes) {
|
type="button"
|
||||||
let t = showToast(`Removing Catch-up ${pc.id}`);
|
class="light danger small"
|
||||||
await db.catchup.del(pc.id);
|
onClick={async () => {
|
||||||
t?.hideToast?.();
|
const yes = confirm('Remove this catch-up?');
|
||||||
showToast(`Catch-up ${pc.id} removed`);
|
if (yes) {
|
||||||
reloadCatchups();
|
let t = showToast(`Removing Catch-up ${pc.id}`);
|
||||||
}
|
await db.catchup.del(pc.id);
|
||||||
}}
|
t?.hideToast?.();
|
||||||
>
|
showToast(`Catch-up ${pc.id} removed`);
|
||||||
<Icon icon="x" />
|
reloadCatchups();
|
||||||
</button>
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Icon icon="x" />
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue