Skip to content

Commit

Permalink
fix(web): user can remove server license (#11199)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Jul 18, 2024
1 parent cd63212 commit e005a12
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@
</div>
</div>

<div class="text-right mt-4">
<Button size="sm" color="red" on:click={removeServerLicense}>Remove license</Button>
</div>
{#if $user.isAdmin}
<div class="text-right mt-4">
<Button size="sm" color="red" on:click={removeServerLicense}>Remove license</Button>
</div>
{/if}
{:else}
<div
class="bg-gray-50 border border-immich-dark-primary/50 dark:bg-immich-dark-primary/15 p-6 pr-12 rounded-xl flex place-content-center gap-4"
Expand Down

0 comments on commit e005a12

Please sign in to comment.