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:
committed by
Fredrik Adelöw
parent
798002ee03
commit
b99231c0bc
@@ -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) {
|
||||
|
||||
@@ -16,3 +16,4 @@
|
||||
|
||||
export * from './api';
|
||||
export * from './service/router';
|
||||
export * from './utils';
|
||||
|
||||
Reference in New Issue
Block a user