Rate limit dialog minor title refactor
This commit is contained in:
parent
e74eeed6a8
commit
9ada3562d5
@ -30,7 +30,7 @@ import {
|
|||||||
RateLimitsDetailsDialogData
|
RateLimitsDetailsDialogData
|
||||||
} from '@home/components/profile/tenant/rate-limits/rate-limits-details-dialog.component';
|
} from '@home/components/profile/tenant/rate-limits/rate-limits-details-dialog.component';
|
||||||
import {
|
import {
|
||||||
editRateLimitTranslationMap,
|
rateLimitDialogTitleTranslationMap,
|
||||||
rateLimitLabelTranslationMap,
|
rateLimitLabelTranslationMap,
|
||||||
RateLimitsType,
|
RateLimitsType,
|
||||||
stringToRateLimitsArray
|
stringToRateLimitsArray
|
||||||
@ -109,7 +109,7 @@ export class RateLimitsComponent implements ControlValueAccessor, OnInit, Valida
|
|||||||
if ($event) {
|
if ($event) {
|
||||||
$event.stopPropagation();
|
$event.stopPropagation();
|
||||||
}
|
}
|
||||||
const title = editRateLimitTranslationMap.get(this.type);
|
const title = rateLimitDialogTitleTranslationMap.get(this.type);
|
||||||
this.dialog.open<RateLimitsDetailsDialogComponent, RateLimitsDetailsDialogData,
|
this.dialog.open<RateLimitsDetailsDialogComponent, RateLimitsDetailsDialogData,
|
||||||
string>(RateLimitsDetailsDialogComponent, {
|
string>(RateLimitsDetailsDialogComponent, {
|
||||||
disableClose: true,
|
disableClose: true,
|
||||||
|
|||||||
@ -53,7 +53,7 @@ export const rateLimitLabelTranslationMap = new Map<RateLimitsType, string>(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
export const editRateLimitTranslationMap = new Map<RateLimitsType, string>(
|
export const rateLimitDialogTitleTranslationMap = new Map<RateLimitsType, string>(
|
||||||
[
|
[
|
||||||
[RateLimitsType.TENANT_MESSAGES, 'tenant-profile.rate-limits.edit-transport-tenant-msg-title'],
|
[RateLimitsType.TENANT_MESSAGES, 'tenant-profile.rate-limits.edit-transport-tenant-msg-title'],
|
||||||
[RateLimitsType.TENANT_TELEMETRY_MESSAGES, 'tenant-profile.rate-limits.edit-transport-tenant-telemetry-msg-title'],
|
[RateLimitsType.TENANT_TELEMETRY_MESSAGES, 'tenant-profile.rate-limits.edit-transport-tenant-telemetry-msg-title'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user