mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(reply modal): show alert before posting if subplebbit might be offline
This commit is contained in:
@@ -278,11 +278,13 @@ const PostForm = () => {
|
||||
|
||||
const offlineAlert =
|
||||
showForm &&
|
||||
(updatedAt
|
||||
? isBoardOffline && (
|
||||
<div className={styles.offlineBoard}>{`Posts last synced ${getFormattedTimeAgo(updatedAt)}, the subplebbit might be offline and publishing might fail.`}</div>
|
||||
)
|
||||
: `The subplebbit might be offline and publishing might fail.`);
|
||||
(updatedAt ? (
|
||||
isBoardOffline && (
|
||||
<div className={styles.offlineBoard}>{`Posts last synced ${getFormattedTimeAgo(updatedAt)}, the subplebbit might be offline and publishing might fail.`}</div>
|
||||
)
|
||||
) : (
|
||||
<div className={styles.offlineBoard}>{`The subplebbit might be offline and publishing might fail.`}</div>
|
||||
));
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user