Merge 1342f0052a
into 30df768d26
This commit is contained in:
commit
8abb45744a
|
@ -9,6 +9,7 @@
|
||||||
- Enhance: アンテナ、リスト等の名前をカラム名のデフォルト値にするように `#13992`
|
- Enhance: アンテナ、リスト等の名前をカラム名のデフォルト値にするように `#13992`
|
||||||
- Enhance: クライアントエラー画面の多言語対応
|
- Enhance: クライアントエラー画面の多言語対応
|
||||||
- Enhance: 開発者モードでメニューからファイルIDをコピー出来るように `#15441'
|
- Enhance: 開発者モードでメニューからファイルIDをコピー出来るように `#15441'
|
||||||
|
- Enhance: ノートに埋め込まれたメディアのコンテキストメニューから管理者用のファイル管理画面を開けるように ( #15440 )
|
||||||
- Fix: コンディショナルロールを手動で割り当てできる導線を削除 `#13529`
|
- Fix: コンディショナルロールを手動で割り当てできる導線を削除 `#13529`
|
||||||
- Fix: 埋め込みプレイヤーから外部ページに移動できない問題を修正
|
- Fix: 埋め込みプレイヤーから外部ページに移動できない問題を修正
|
||||||
|
|
||||||
|
|
|
@ -10056,6 +10056,10 @@ export interface Locale extends ILocale {
|
||||||
* ファイルの詳細
|
* ファイルの詳細
|
||||||
*/
|
*/
|
||||||
"title": string;
|
"title": string;
|
||||||
|
/**
|
||||||
|
* ファイルの詳細(管理者用)
|
||||||
|
*/
|
||||||
|
"titleAdmin": string;
|
||||||
/**
|
/**
|
||||||
* ファイルタイプ
|
* ファイルタイプ
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2665,6 +2665,7 @@ _moderationLogTypes:
|
||||||
|
|
||||||
_fileViewer:
|
_fileViewer:
|
||||||
title: "ファイルの詳細"
|
title: "ファイルの詳細"
|
||||||
|
titleAdmin: "ファイルの詳細(管理者用)"
|
||||||
type: "ファイルタイプ"
|
type: "ファイルタイプ"
|
||||||
size: "ファイルサイズ"
|
size: "ファイルサイズ"
|
||||||
url: "URL"
|
url: "URL"
|
||||||
|
|
|
@ -217,10 +217,9 @@ function showMenu(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const details: MenuItem[] = [];
|
||||||
if ($i?.id === props.audio.userId) {
|
if ($i?.id === props.audio.userId) {
|
||||||
menu.push({
|
details.push({
|
||||||
type: 'divider',
|
|
||||||
}, {
|
|
||||||
type: 'link',
|
type: 'link',
|
||||||
text: i18n.ts._fileViewer.title,
|
text: i18n.ts._fileViewer.title,
|
||||||
icon: 'ti ti-info-circle',
|
icon: 'ti ti-info-circle',
|
||||||
|
@ -228,6 +227,19 @@ function showMenu(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (iAmModerator) {
|
||||||
|
details.push({
|
||||||
|
type: 'link',
|
||||||
|
text: i18n.ts._fileViewer.titleAdmin,
|
||||||
|
icon: 'ti ti-info-circle',
|
||||||
|
to: `/admin/file/${props.audio.id}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (details.length > 0) {
|
||||||
|
menu.push({ type: 'divider' }, ...details);
|
||||||
|
}
|
||||||
|
|
||||||
if (defaultStore.state.devMode) {
|
if (defaultStore.state.devMode) {
|
||||||
menu.push({ type: 'divider' }, {
|
menu.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-id',
|
||||||
|
|
|
@ -133,10 +133,9 @@ function showMenu(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const details: MenuItem[] = [];
|
||||||
if ($i?.id === props.image.userId) {
|
if ($i?.id === props.image.userId) {
|
||||||
menuItems.push({
|
details.push({
|
||||||
type: 'divider',
|
|
||||||
}, {
|
|
||||||
type: 'link',
|
type: 'link',
|
||||||
text: i18n.ts._fileViewer.title,
|
text: i18n.ts._fileViewer.title,
|
||||||
icon: 'ti ti-info-circle',
|
icon: 'ti ti-info-circle',
|
||||||
|
@ -144,6 +143,19 @@ function showMenu(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (iAmModerator) {
|
||||||
|
details.push({
|
||||||
|
type: 'link',
|
||||||
|
text: i18n.ts._fileViewer.titleAdmin,
|
||||||
|
icon: 'ti ti-info-circle',
|
||||||
|
to: `/admin/file/${props.image.id}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (details.length > 0) {
|
||||||
|
menuItems.push({ type: 'divider' }, ...details);
|
||||||
|
}
|
||||||
|
|
||||||
if (defaultStore.state.devMode) {
|
if (defaultStore.state.devMode) {
|
||||||
menuItems.push({ type: 'divider' }, {
|
menuItems.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-id',
|
||||||
|
|
|
@ -242,10 +242,9 @@ function showMenu(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const details: MenuItem[] = [];
|
||||||
if ($i?.id === props.video.userId) {
|
if ($i?.id === props.video.userId) {
|
||||||
menu.push({
|
details.push({
|
||||||
type: 'divider',
|
|
||||||
}, {
|
|
||||||
type: 'link',
|
type: 'link',
|
||||||
text: i18n.ts._fileViewer.title,
|
text: i18n.ts._fileViewer.title,
|
||||||
icon: 'ti ti-info-circle',
|
icon: 'ti ti-info-circle',
|
||||||
|
@ -253,6 +252,19 @@ function showMenu(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (iAmModerator) {
|
||||||
|
details.push({
|
||||||
|
type: 'link',
|
||||||
|
text: i18n.ts._fileViewer.titleAdmin,
|
||||||
|
icon: 'ti ti-info-circle',
|
||||||
|
to: `/admin/file/${props.video.id}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (details.length > 0) {
|
||||||
|
menu.push({ type: 'divider' }, ...details);
|
||||||
|
}
|
||||||
|
|
||||||
if (defaultStore.state.devMode) {
|
if (defaultStore.state.devMode) {
|
||||||
menu.push({ type: 'divider' }, {
|
menu.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-id',
|
||||||
|
|
Loading…
Reference in New Issue