mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 10:16:10 +02:00
enhance(frontend): improve plugin management
This commit is contained in:
@@ -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' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user