Skip to content

Commit 2e1df78

Browse files
committed
improved server messages on script update
1 parent b770d33 commit 2e1df78

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/routes/scripts/[slug]/edit/files/+page.server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ export const actions = {
169169
}
170170

171171
await updateScript(id)
172-
return message(form, "Script files data updated!")
172+
return message(
173+
form,
174+
"Script files data updated! You may need to refresh the page to see the changes. Images may take 24h to change."
175+
)
173176
}
174177
}

src/routes/scripts/[slug]/edit/information/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ export const actions = {
9797
return setError(form, "", "UPDATE scripts.metadata failed\n\n" + JSON.stringify(errMetadata))
9898

9999
await updateScript(id)
100-
return message(form, "Script information updated!")
100+
return message(form, "Script information updated! You may need to refresh the page to see the changes.")
101101
}
102102
}

src/routes/scripts/[slug]/edit/stats/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ export const actions = {
117117
return setError(form, "", "UPDATE stats.limits_custom failed\n\n" + JSON.stringify(errCLimits))
118118

119119
await updateScript(id)
120-
return message(form, "Script stats data updated!")
120+
return message(form, "Script stats data updated! You may need to refresh the page to see the changes.")
121121
}
122122
}

0 commit comments

Comments
 (0)