1
0

upd: play animated MFM button

This commit is contained in:
Mar0xy
2023-11-06 00:26:23 +01:00
parent 5698a0e0fb
commit 2dfd8b2842
6 changed files with 93 additions and 4 deletions
@@ -40,6 +40,7 @@ type MfmProps = {
parsedNodes?: mfm.MfmNode[] | null;
enableEmojiMenu?: boolean;
enableEmojiMenuReaction?: boolean;
isAnim?: boolean;
};
// eslint-disable-next-line import/no-default-export
@@ -57,7 +58,7 @@ export default function(props: MfmProps) {
return t.match(/^[0-9.]+s$/) ? t : null;
};
const useAnim = defaultStore.state.advancedMfm && defaultStore.state.animatedMfm;
const useAnim = defaultStore.state.advancedMfm && defaultStore.state.animatedMfm ? true : props.isAnim ? true : false;
/**
* Gen Vue Elements from MFM AST