enhance(frontend): improve plugin management
This commit is contained in:
parent
6cefabc6b6
commit
0402866b43
8 changed files with 131 additions and 144 deletions
|
|
@ -24,7 +24,7 @@ import { isSupportShare } from '@/utility/navigator.js';
|
|||
import { getAppearNote } from '@/utility/get-appear-note.js';
|
||||
import { genEmbedCode } from '@/utility/get-embed-code.js';
|
||||
import { prefer } from '@/preferences.js';
|
||||
import { noteActions } from '@/plugin.js';
|
||||
import { getPluginHandlers } from '@/plugin.js';
|
||||
|
||||
export async function getNoteClipMenu(props: {
|
||||
note: Misskey.entities.Note;
|
||||
|
|
@ -497,6 +497,7 @@ export function getNoteMenu(props: {
|
|||
}
|
||||
}
|
||||
|
||||
const noteActions = getPluginHandlers('note_action');
|
||||
if (noteActions.length > 0) {
|
||||
menuItems.push({ type: 'divider' });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue