-
- {{ user.firstName }} {{ user.lastName }} ({{ user.email }})
+
+
+ {{ user.firstName }} {{ user.lastName }}
{{ user.email }}
-
-
+
+
diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts
index f7f7a41add..122169ed07 100644
--- a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts
@@ -176,8 +176,9 @@ export class TemplateNotificationDialogComponent
private allowNotificationType(): NotificationType[] {
if (this.isSysAdmin()) {
- return [NotificationType.GENERAL, NotificationType.ENTITIES_LIMIT];
+ return [NotificationType.GENERAL, NotificationType.ENTITIES_LIMIT, NotificationType.API_USAGE_LIMIT];
}
- return Object.values(NotificationType).filter(type => type !== NotificationType.ENTITIES_LIMIT);
+ return Object.values(NotificationType)
+ .filter(type => type !== NotificationType.ENTITIES_LIMIT && type !== NotificationType.API_USAGE_LIMIT);
}
}
diff --git a/ui-ngx/src/app/shared/models/api-usage.models.ts b/ui-ngx/src/app/shared/models/api-usage.models.ts
new file mode 100644
index 0000000000..bbc0ff5597
--- /dev/null
+++ b/ui-ngx/src/app/shared/models/api-usage.models.ts
@@ -0,0 +1,47 @@
+///
+/// Copyright © 2016-2023 The Thingsboard Authors
+///
+/// Licensed under the Apache License, Version 2.0 (the "License");
+/// you may not use this file except in compliance with the License.
+/// You may obtain a copy of the License at
+///
+/// http://www.apache.org/licenses/LICENSE-2.0
+///
+/// Unless required by applicable law or agreed to in writing, software
+/// distributed under the License is distributed on an "AS IS" BASIS,
+/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+/// See the License for the specific language governing permissions and
+/// limitations under the License.
+///
+
+export enum ApiUsageStateValue {
+ ENABLED = 'ENABLED',
+ WARNING = 'WARNING',
+ DISABLED = 'DISABLED'
+}
+
+export const ApiUsageStateValueTranslationMap = new Map