From 78cca0c10a1691f75b16bca2f6082016ae2d2592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Tue, 30 Dec 2025 17:34:38 +0100 Subject: [PATCH] Editor: cleanup and feedback --- assets/controllers/nostr/nostr_publish_controller.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) {