core: add grouping to applications (#2648)

* core: add grouping to applications

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* core: add new field to tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens L
2022-04-02 23:08:58 +02:00
committed by GitHub
parent 508cec2fd5
commit 633296503d
19 changed files with 159 additions and 34 deletions

View File

@ -73,7 +73,7 @@ export class ApplicationListPage extends TablePage<Application> {
return [
new TableColumn(""),
new TableColumn(t`Name`, "name"),
new TableColumn(t`Slug`, "slug"),
new TableColumn(t`Group`, "group"),
new TableColumn(t`Provider`),
new TableColumn(t`Provider Type`),
new TableColumn(t`Actions`),
@ -135,7 +135,7 @@ export class ApplicationListPage extends TablePage<Application> {
<div>${item.name}</div>
${item.metaPublisher ? html`<small>${item.metaPublisher}</small>` : html``}
</a>`,
html`<code>${item.slug}</code>`,
html`${item.group || t`-`}`,
item.provider
? html`<a href="#/core/providers/${item.providerObj?.pk}">
${item.providerObj?.name}