perf: let toast show earlier

This commit is contained in:
sevichecc 2023-04-16 12:13:17 +08:00
parent 6491f68324
commit d6ff99bc59
Signed by untrusted user who does not match committer: SevicheCC
GPG key ID: C577000000000000

View file

@ -81,9 +81,9 @@ export default function SimpleCommand(props: CommandProps) {
if (scheduled_at) {
showToast(Toast.Style.Success, "Scheduled", labelText(scheduled_at));
} else {
showToast(Toast.Style.Success, "Status has been published (≧∇≦)/ ! ");
cache.set("latest_published_status", JSON.stringify(response));
setOpenActionText("View the status in Browser");
showToast(Toast.Style.Success, "Status has been published (≧∇≦)/ ! ");
}
setStatusInfo(response)
setCw("");