Add removal status for filesystem
This commit is contained in:
@@ -6,6 +6,7 @@ import ListView from './ListView.svelte'
|
||||
import GalleryView from './GalleryView.svelte'
|
||||
import Button from '../../layout/Button.svelte';
|
||||
import FileImporter from './FileImporter.svelte';
|
||||
import { formatDate } from '../../util/Formatting.svelte';
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
export let fs_navigator
|
||||
@@ -359,6 +360,16 @@ onMount(() => {
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
{#if state.base.abuse_type !== undefined}
|
||||
<div class="highlight_red">
|
||||
This directory has received an abuse report. It cannot be
|
||||
shared.<br/>
|
||||
Type of abuse: {state.base.abuse_type}<br/>
|
||||
Report time: {formatDate(state.base.abuse_report_time, true, true, true)}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<slot></slot>
|
||||
|
||||
{#if directory_view === "list"}
|
||||
|
@@ -38,7 +38,10 @@ export let large_icons = false
|
||||
{/if}
|
||||
</td>
|
||||
<td class="node_icons">
|
||||
{#if child.id}
|
||||
|
||||
{#if child.abuse_type !== undefined}
|
||||
<i class="icon" title="This file / directory has received an abuse report. It cannot be shared">block</i>
|
||||
{:else if child.id}
|
||||
<a
|
||||
href="/d/{child.id}"
|
||||
on:click|preventDefault|stopPropagation={() => {dispatch("node_share_click", index)}}
|
||||
|
Reference in New Issue
Block a user