Skip to content

Commit

Permalink
Fix license not shown if remainingSeats is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Feb 19, 2024
1 parent 22ef864 commit 371ba0c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>
</div>

<div v-if="admin.hasLicense && remainingSeats" class="bg-white px-4 py-5 shadow sm:rounded-lg sm:p-6">
<div v-if="admin.hasLicense && remainingSeats != null" class="bg-white px-4 py-5 shadow sm:rounded-lg sm:p-6">
<div class="md:grid md:grid-cols-3 md:gap-6">
<div class="md:col-span-1">
<h3 class="text-lg font-medium leading-6 text-gray-900">
Expand Down Expand Up @@ -133,7 +133,7 @@
</button>
</div>

<div v-if="!admin.hasLicense && remainingSeats" class="bg-white px-4 py-5 shadow sm:rounded-lg sm:p-6">
<div v-if="!admin.hasLicense && remainingSeats != null" class="bg-white px-4 py-5 shadow sm:rounded-lg sm:p-6">
<div class="md:grid md:grid-cols-3 md:gap-6">
<div class="md:col-span-1">
<h3 class="text-lg font-medium leading-6 text-gray-900">
Expand Down Expand Up @@ -258,8 +258,7 @@ async function fetchData() {
try {
let versionDto = backend.version.get();
let versionAvailable = versionDto.then(versionDto => updateChecker.get(versionDto.hubVersion));
let adminDto = backend.billing.get();
admin.value = await adminDto;
admin.value = await backend.billing.get();
version.value = await versionDto;
latestVersion.value = await versionAvailable;
} catch (error) {
Expand Down

0 comments on commit 371ba0c

Please sign in to comment.