feat: add mark page resolved button to moderation
This commit is contained in:
4 files changed
+75
-16
No files matched your search
@@ -17,5 +17,5 @@
|
||||
|
||||
<div
|
||||
class="bg-primary-900 dark:bg-primary-100 h-1 rounded-full"
|
||||
style="width: {tween.current * 100}%;"
|
||||
style="width: {tween.current >= 0 ? tween.current * 100 : 0}%;"
|
||||
></div>
|
||||
@@ -47,16 +47,18 @@
|
||||
title={label}
|
||||
style="transition-property: background-color, filter;"
|
||||
>
|
||||
{#if icon}
|
||||
<Icon
|
||||
src={icon}
|
||||
micro={isPanel}
|
||||
solid={!isPanel && isSelected}
|
||||
size={isPanel ? '16' : '18'}
|
||||
/>
|
||||
{:else}
|
||||
{@render customIcon?.({ size: isPanel ? 16 : 18, isSelected })}
|
||||
{/if}
|
||||
{#snippet prefix()}
|
||||
{#if icon}
|
||||
<Icon
|
||||
src={icon}
|
||||
micro={isPanel}
|
||||
solid={!isPanel && isSelected}
|
||||
size={isPanel ? '16' : '18'}
|
||||
/>
|
||||
{:else}
|
||||
{@render customIcon?.({ size: isPanel ? 16 : 18, isSelected })}
|
||||
{/if}
|
||||
{/snippet}
|
||||
<span class="hidden {adaptive ? '@3xl:block' : ''}">{label}</span>
|
||||
{@render children?.()}
|
||||
</Button>
|
||||
@@ -312,7 +312,9 @@
|
||||
"resolve": "Resolve",
|
||||
"resolved": "Resolved",
|
||||
"unresolve": "Unresolve",
|
||||
"resolvedBy": "Resolved by"
|
||||
"resolvedBy": "Resolved by",
|
||||
"markAll": "Mark page resolved",
|
||||
"markAllComplete": "Batch action completed."
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administration",
|
||||
|
||||
Reference in new issue
Block a user