Merge branch 'rc' of github.com:thingsboard/thingsboard into rc
This commit is contained in:
commit
b9a5fd0088
@ -20,15 +20,10 @@ import {
|
||||
EntityTableColumn,
|
||||
EntityTableConfig
|
||||
} from '@home/models/entity/entities-table-config.models';
|
||||
import {
|
||||
getProviderHelpLink,
|
||||
OAuth2Client,
|
||||
OAuth2ClientInfo,
|
||||
platformTypeTranslations
|
||||
} from '@shared/models/oauth2.models';
|
||||
import { OAuth2Client, OAuth2ClientInfo, platformTypeTranslations } from '@shared/models/oauth2.models';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { DatePipe } from '@angular/common';
|
||||
import { EntityType, entityTypeTranslations } from '@shared/models/entity-type.models';
|
||||
import { EntityType, entityTypeResources, entityTypeTranslations } from '@shared/models/entity-type.models';
|
||||
import { OAuth2Service } from '@core/http/oauth2.service';
|
||||
import { ClientComponent } from '@home/pages/admin/oauth2/clients/client.component';
|
||||
import { ClientTableHeaderComponent } from '@home/pages/admin/oauth2/clients/client-table-header.component';
|
||||
@ -48,10 +43,7 @@ export class ClientsTableConfigResolver {
|
||||
this.config.entityType = EntityType.OAUTH2_CLIENT;
|
||||
this.config.rowPointer = true;
|
||||
this.config.entityTranslations = entityTypeTranslations.get(EntityType.OAUTH2_CLIENT);
|
||||
this.config.entityResources = {
|
||||
helpLinkId: null,
|
||||
helpLinkIdForEntity: (entity: OAuth2Client) => getProviderHelpLink(entity.additionalInfo.providerName)
|
||||
};
|
||||
this.config.entityResources = entityTypeResources.get(EntityType.OAUTH2_CLIENT);
|
||||
this.config.entityComponent = ClientComponent;
|
||||
this.config.headerComponent = ClientTableHeaderComponent;
|
||||
this.config.addDialogStyle = {width: '850px', maxHeight: '100vh'};
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
|
||||
import { TenantId } from './id/tenant-id';
|
||||
import { BaseData, HasId } from '@shared/models/base-data';
|
||||
import { getProviderHelpLink, OAuth2Client } from '@shared/models/oauth2.models';
|
||||
|
||||
export enum EntityType {
|
||||
TENANT = 'TENANT',
|
||||
@ -588,7 +589,8 @@ export const entityTypeResources = new Map<EntityType, EntityTypeResource<BaseDa
|
||||
[
|
||||
EntityType.OAUTH2_CLIENT,
|
||||
{
|
||||
helpLinkId: 'oauth2Settings'
|
||||
helpLinkId: 'oauth2Settings',
|
||||
helpLinkIdForEntity: (entity: OAuth2Client) => getProviderHelpLink(entity.additionalInfo.providerName)
|
||||
}
|
||||
],
|
||||
[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user