mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: chat deletion
This commit is contained in:
parent
5a9d883a93
commit
c2d41b0376
1 changed files with 2 additions and 2 deletions
|
|
@ -58,11 +58,11 @@
|
||||||
<button
|
<button
|
||||||
class="p-1 px-3 text-xs flex rounded transition"
|
class="p-1 px-3 text-xs flex rounded transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
permissions.chat.deletion = !permissions.chat.deletion;
|
permissions.chat.deletion = !(permissions?.chat?.deletion ?? true);
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
{#if permissions.chat.deletion}
|
{#if permissions?.chat?.deletion ?? true}
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 16 16"
|
viewBox="0 0 16 16"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue