mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Add new file activity.
This commit is contained in:
@@ -145,7 +145,9 @@ export default function StorageView() {
|
||||
<tr key={s.id} className={"hover"}>
|
||||
<td>
|
||||
{s.name}
|
||||
{s.isDefault && <Badge className={"ml-1"}>{t("Default")}</Badge>}
|
||||
{s.isDefault && (
|
||||
<Badge className={"ml-1"}>{t("Default")}</Badge>
|
||||
)}
|
||||
</td>
|
||||
<td>{new Date(s.createdAt).toLocaleString()}</td>
|
||||
<td>
|
||||
@@ -173,15 +175,15 @@ export default function StorageView() {
|
||||
>
|
||||
<a>{t("Delete")}</a>
|
||||
</PopupMenuItem>
|
||||
{!s.isDefault && <PopupMenuItem
|
||||
onClick={() => {
|
||||
handleSetDefault(s.id);
|
||||
}}
|
||||
>
|
||||
<a>
|
||||
t("Set as Default")
|
||||
</a>
|
||||
</PopupMenuItem>}
|
||||
{!s.isDefault && (
|
||||
<PopupMenuItem
|
||||
onClick={() => {
|
||||
handleSetDefault(s.id);
|
||||
}}
|
||||
>
|
||||
<a>t("Set as Default")</a>
|
||||
</PopupMenuItem>
|
||||
)}
|
||||
</ul>,
|
||||
document.getElementById(
|
||||
`set_default_button_${s.id}`,
|
||||
|
Reference in New Issue
Block a user