mirror of
https://github.com/goharbor/harbor
synced 2025-04-18 05:26:58 +00:00
Add a tooltip for slack notification (#18787)
1.Fixes #18507 2.Remind the users of Slack's rate limits Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
61d74b9da1
commit
2f51daf707
|
@ -83,24 +83,40 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- notify type -->
|
||||
<clr-select-container>
|
||||
<label class="required">{{
|
||||
<div class="clr-form-control">
|
||||
<label class="required clr-control-label">{{
|
||||
'WEBHOOK.NOTIFY_TYPE' | translate
|
||||
}}</label>
|
||||
<select
|
||||
class="width-238"
|
||||
clrSelect
|
||||
name="notifyType"
|
||||
id="notify_type"
|
||||
[(ngModel)]="webhook.targets[0].type"
|
||||
[disabled]="checking">
|
||||
<option
|
||||
*ngFor="let type of metadata?.notify_type"
|
||||
value="{{ type }}">
|
||||
{{ type }}
|
||||
</option>
|
||||
</select>
|
||||
</clr-select-container>
|
||||
<div class="clr-control-container">
|
||||
<div class="clr-select-wrapper">
|
||||
<select
|
||||
class="width-238 clr-select"
|
||||
name="notifyType"
|
||||
id="notify_type"
|
||||
[(ngModel)]="webhook.targets[0].type"
|
||||
[disabled]="checking">
|
||||
<option
|
||||
*ngFor="let type of metadata?.notify_type"
|
||||
value="{{ type }}">
|
||||
{{ type }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<clr-tooltip [hidden]="webhook.targets[0].type !== 'slack'">
|
||||
<clr-icon
|
||||
clrTooltipTrigger
|
||||
shape="info-circle"
|
||||
size="24"></clr-icon>
|
||||
<clr-tooltip-content
|
||||
clrPosition="top-right"
|
||||
clrSize="lg"
|
||||
*clrIfOpen>
|
||||
{{ 'WEBHOOK.SLACK_RATE_LIMIT' | translate }}
|
||||
</clr-tooltip-content>
|
||||
</clr-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- payload format -->
|
||||
<clr-select-container *ngIf="webhook.targets[0].type === 'http'">
|
||||
<label>{{ 'WEBHOOK.PAYLOAD_FORMAT' | translate }}</label>
|
||||
|
|
|
@ -431,7 +431,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "Mindestens ein Event Typ ist erforderlich",
|
||||
"PAYLOAD_FORMAT": "Payload Format",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload Data"
|
||||
"PAYLOAD_DATA": "Payload Data",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
},
|
||||
"GROUP": {
|
||||
"GROUP": "Gruppe",
|
||||
|
|
|
@ -431,7 +431,9 @@
|
|||
"EVENT_TYPE_REQUIRED": "Require at least one event type",
|
||||
"PAYLOAD_FORMAT": "Payload Format",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload Data"
|
||||
"PAYLOAD_DATA": "Payload Data",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
|
||||
},
|
||||
"GROUP": {
|
||||
"GROUP": "Group",
|
||||
|
|
|
@ -432,7 +432,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "Require at least one event type",
|
||||
"PAYLOAD_FORMAT": "Payload Format",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload Data"
|
||||
"PAYLOAD_DATA": "Payload Data",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
},
|
||||
"GROUP": {
|
||||
"GROUP": "Group",
|
||||
|
|
|
@ -421,7 +421,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "Au moins un type d'évènement est nécessaire",
|
||||
"PAYLOAD_FORMAT": "Payload Format",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload Data"
|
||||
"PAYLOAD_DATA": "Payload Data",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
},
|
||||
"GROUP": {
|
||||
"Group": "Groupe",
|
||||
|
|
|
@ -463,7 +463,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "Pelo menos um tipo de evento é obrigatório",
|
||||
"PAYLOAD_FORMAT": "Payload Format",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload Data"
|
||||
"PAYLOAD_DATA": "Payload Data",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
},
|
||||
"AUDIT_LOG": {
|
||||
"USERNAME": "Nome do usuário",
|
||||
|
|
|
@ -431,7 +431,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "Require at least one event type",
|
||||
"PAYLOAD_FORMAT": "Payload Format",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload Data"
|
||||
"PAYLOAD_DATA": "Payload Data",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
},
|
||||
"GROUP": {
|
||||
"GROUP": "Grup",
|
||||
|
|
|
@ -430,7 +430,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "请至少选择一种事件类型",
|
||||
"PAYLOAD_FORMAT": "载荷形式",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "载荷数据"
|
||||
"PAYLOAD_DATA": "载荷数据",
|
||||
"SLACK_RATE_LIMIT": "请注意 Slack 的速率限制"
|
||||
},
|
||||
"GROUP": {
|
||||
"GROUP": "组",
|
||||
|
|
|
@ -428,7 +428,8 @@
|
|||
"EVENT_TYPE_REQUIRED": "請至少選擇一種事件類型",
|
||||
"PAYLOAD_FORMAT": "Payload 格式",
|
||||
"CLOUD_EVENT": "CloudEvents",
|
||||
"PAYLOAD_DATA": "Payload 資料"
|
||||
"PAYLOAD_DATA": "Payload 資料",
|
||||
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
|
||||
},
|
||||
"GROUP": {
|
||||
"GROUP": "群組",
|
||||
|
|
Loading…
Reference in New Issue
Block a user