logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 7aee12bcd4a70cc51a0fd50228883fa76298cd50
parent e0b99405356dfb2cab1e4a4410de1bc0f2a8a023
Author: Henry Jameson <me@hjkos.com>
Date:   Wed,  5 Feb 2025 10:27:47 +0200

fix openEditStatusStore

Diffstat:

Msrc/components/status_action_buttons/buttons_definitions.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/status_action_buttons/buttons_definitions.js b/src/components/status_action_buttons/buttons_definitions.js @@ -1,3 +1,4 @@ +import { useEditStatusStore } from 'src/stores/editStatus.js' const PRIVATE_SCOPES = new Set(['private', 'direct']) const PUBLIC_SCOPES = new Set(['public', 'unlisted']) export const BUTTONS = [{ @@ -151,7 +152,7 @@ export const BUTTONS = [{ }, action ({ dispatch, status }) { return dispatch('fetchStatusSource', { id: status.id }) - .then(data => dispatch('openEditStatusModal', { + .then(data => useEditStatusStore().openEditStatusModal({ statusId: status.id, subject: data.spoiler_text, statusText: data.text,