feat: Show usage history in dashboard (#1998)
Following https://github.com/webrecorder/browsertrix/pull/1995, we want to keep the usage history table on the dashboard for now for video demos. ### Changes - Adds usage history table back to org dashboard - Makes "No usage history" message more apparent
This commit is contained in:
parent
ba1e2ab602
commit
0b14be896b
@ -29,7 +29,9 @@ export class UsageHistoryTable extends TailwindElement {
|
|||||||
|
|
||||||
if (this.org.usage && !Object.keys(this.org.usage).length) {
|
if (this.org.usage && !Object.keys(this.org.usage).length) {
|
||||||
return html`
|
return html`
|
||||||
<p class="text-center text-neutral-500">
|
<p
|
||||||
|
class="rounded border bg-neutral-50 p-3 text-center text-neutral-500"
|
||||||
|
>
|
||||||
${msg("No usage history to show.")}
|
${msg("No usage history to show.")}
|
||||||
</p>
|
</p>
|
||||||
`;
|
`;
|
||||||
|
@ -251,21 +251,14 @@ export class Dashboard extends LiteElement {
|
|||||||
`,
|
`,
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
${when(
|
|
||||||
this.appState.settings &&
|
|
||||||
!this.appState.settings.billingEnabled &&
|
|
||||||
this.org,
|
|
||||||
(org) => html`
|
|
||||||
<section class="mb-10">
|
<section class="mb-10">
|
||||||
<btrix-details open>
|
<btrix-details>
|
||||||
<span slot="title">${msg("Usage History")}</span>
|
<span slot="title">${msg("Usage History")}</span>
|
||||||
<btrix-usage-history-table
|
<btrix-usage-history-table
|
||||||
.org=${org}
|
.org=${this.org}
|
||||||
></btrix-usage-history-table>
|
></btrix-usage-history-table>
|
||||||
</btrix-details>
|
</btrix-details>
|
||||||
</section>
|
</section>
|
||||||
`,
|
|
||||||
)}
|
|
||||||
</main> `;
|
</main> `;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user