badges: move to context menu. support for multiple badges from config. #4457.

Signed-off-by: Andreas Stenius <git@astekk.se>
This commit is contained in:
Andreas Stenius
2021-02-19 21:45:47 +01:00
committed by Fredrik Adelöw
parent 798002ee03
commit b99231c0bc
12 changed files with 275 additions and 32 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export class BadgesApi {
private readonly config: { [id: string]: BadgeConfig },
) {}
public getBadge(badgeKind: string, badgeId: string, context: any) {
public getBadge(badgeKind: string, badgeId: string, context: object) {
const badge = this.config[badgeId] || this.config.default;
if (!badge) {
+1
View File
@@ -16,3 +16,4 @@
export * from './api';
export * from './service/router';
export * from './utils';