mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-19 08:31:15 +00:00
Add loading status to publish page.
This commit is contained in:
@@ -72,6 +72,7 @@ export default function EditResourcePage() {
|
||||
setError(t("Description cannot be empty"))
|
||||
return
|
||||
}
|
||||
setSubmitting(true)
|
||||
const res = await network.editResource(id, {
|
||||
title: title,
|
||||
alternative_titles: altTitles,
|
||||
|
||||
@@ -50,6 +50,7 @@ export default function PublishPage() {
|
||||
setError(t("Description cannot be empty"))
|
||||
return
|
||||
}
|
||||
setSubmitting(true)
|
||||
const res = await network.createResource({
|
||||
title: title,
|
||||
alternative_titles: altTitles,
|
||||
|
||||
Reference in New Issue
Block a user