enhance(frontend): ノートに埋め込まれたメディアのコンテキストメニューから管理者用のファイル管理画面を開けるように (#15460)
* enhance(frontend): ノートに埋め込まれたメディアのコンテキストメニューから管理者用のファイル管理画面を開けるように * fix icon * fix menu --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
		@@ -133,10 +133,9 @@ function showMenu(ev: MouseEvent) {
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const details: MenuItem[] = [];
 | 
			
		||||
	if ($i?.id === props.image.userId) {
 | 
			
		||||
		menuItems.push({
 | 
			
		||||
			type: 'divider',
 | 
			
		||||
		}, {
 | 
			
		||||
		details.push({
 | 
			
		||||
			type: 'link',
 | 
			
		||||
			text: i18n.ts._fileViewer.title,
 | 
			
		||||
			icon: 'ti ti-info-circle',
 | 
			
		||||
@@ -144,6 +143,19 @@ function showMenu(ev: MouseEvent) {
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (iAmModerator) {
 | 
			
		||||
		details.push({
 | 
			
		||||
			type: 'link',
 | 
			
		||||
			text: i18n.ts.moderation,
 | 
			
		||||
			icon: 'ti ti-photo-exclamation',
 | 
			
		||||
			to: `/admin/file/${props.image.id}`,
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (details.length > 0) {
 | 
			
		||||
		menuItems.push({ type: 'divider' }, ...details);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (defaultStore.state.devMode) {
 | 
			
		||||
		menuItems.push({ type: 'divider' }, {
 | 
			
		||||
			icon: 'ti ti-id',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user