diff --git a/assets/controllers/nostr/nostr_publish_controller.js b/assets/controllers/nostr/nostr_publish_controller.js
index 421f5bc..66a32f6 100644
--- a/assets/controllers/nostr/nostr_publish_controller.js
+++ b/assets/controllers/nostr/nostr_publish_controller.js
@@ -516,12 +516,24 @@ export default class extends Controller {
if (this.hasStatusTarget) {
this.statusTarget.innerHTML = `
${message}
`;
}
+ // Clear status after 3 seconds
+ setTimeout(() => {
+ if (this.hasStatusTarget) {
+ this.statusTarget.innerHTML = '';
+ }
+ }, 3000);
}
showSuccess(message) {
if (this.hasStatusTarget) {
this.statusTarget.innerHTML = `${message}
`;
}
+ // Clear status after 3 seconds
+ setTimeout(() => {
+ if (this.hasStatusTarget) {
+ this.statusTarget.innerHTML = '';
+ }
+ }, 3000);
}
showError(message) {