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