mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
List the enabled bots on the go-neb page
This commit is contained in:
parent
51ea270fba
commit
42315de8df
@ -13,6 +13,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Enabled Bots</th>
|
||||
<th class="text-center" style="width: 120px;">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -25,6 +26,9 @@
|
||||
{{ neb.upstreamId ? "matrix.org's go-neb" : "Self-hosted go-neb" }}
|
||||
<span class="text-muted" style="display: inline-block;" *ngIf="!neb.upstreamId">({{ neb.adminUrl }})</span>
|
||||
</td>
|
||||
<td>
|
||||
{{ getEnabledBotsString(neb) }}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="appsvcConfigButton" (click)="showAppserviceConfig(neb)"
|
||||
*ngIf="!neb.upstreamId">
|
||||
|
@ -71,6 +71,12 @@ export class AdminNebComponent {
|
||||
console.log(neb);
|
||||
}
|
||||
|
||||
public getEnabledBotsString(neb: FE_NebConfiguration): string {
|
||||
const result = neb.integrations.filter(i => i.isEnabled).map(i => i.displayName).join(", ");
|
||||
if (!result) return "None";
|
||||
return result;
|
||||
}
|
||||
|
||||
public addSelfHostedNeb() {
|
||||
this.router.navigate(["new", "selfhosted"], {relativeTo: this.activatedRoute});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user