Add removal status for filesystem

This commit is contained in:
2024-05-17 16:32:53 +02:00
parent 2335c82153
commit f76fc8dcf3
7 changed files with 37 additions and 5 deletions

View File

@@ -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"}

View File

@@ -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)}}