mirror of
https://github.com/harness/drone.git
synced 2025-05-10 02:50:58 +08:00
feat: [code-100]: pop-up panel for webhook on/off (#321)
This commit is contained in:
parent
5cc2b03156
commit
5cd22f0689
@ -82,6 +82,8 @@ export interface StringsMap {
|
|||||||
deployKeys: string
|
deployKeys: string
|
||||||
description: string
|
description: string
|
||||||
diff: string
|
diff: string
|
||||||
|
disableWebhookContent: string
|
||||||
|
disableWebhookTitle: string
|
||||||
draft: string
|
draft: string
|
||||||
edit: string
|
edit: string
|
||||||
editFile: string
|
editFile: string
|
||||||
@ -91,6 +93,8 @@ export interface StringsMap {
|
|||||||
emptyRepoHeader: string
|
emptyRepoHeader: string
|
||||||
emptyRepoInclude: string
|
emptyRepoInclude: string
|
||||||
enableSSLVerification: string
|
enableSSLVerification: string
|
||||||
|
enableWebhookContent: string
|
||||||
|
enableWebhookTitle: string
|
||||||
enabled: string
|
enabled: string
|
||||||
enterDescription: string
|
enterDescription: string
|
||||||
enterNewBranchName: string
|
enterNewBranchName: string
|
||||||
|
@ -330,3 +330,7 @@ noOptionalReviewers: No Optional Reviewers
|
|||||||
noRequiredReviewers: No Required Reviewers
|
noRequiredReviewers: No Required Reviewers
|
||||||
reviewers: Reviewers
|
reviewers: Reviewers
|
||||||
refresh: Refresh
|
refresh: Refresh
|
||||||
|
enableWebhookTitle: Enable the Webhook
|
||||||
|
disableWebhookTitle: Disable the Webhook
|
||||||
|
enableWebhookContent: Please confirm that you wanted to turn on
|
||||||
|
disableWebhookContent: Please confirm that you wanted to turn off
|
||||||
|
@ -91,12 +91,13 @@ export default function Webhooks() {
|
|||||||
<Container padding={'medium'} width={250}>
|
<Container padding={'medium'} width={250}>
|
||||||
<Layout.Vertical>
|
<Layout.Vertical>
|
||||||
<Text font={{ variation: FontVariation.H5, size: 'medium' }}>
|
<Text font={{ variation: FontVariation.H5, size: 'medium' }}>
|
||||||
{getString('webhookDialogTitle')}
|
{checked ? getString('disableWebhookTitle') : getString('enableWebhookTitle')}
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
padding={{ top: 'medium', bottom: 'medium', left: 'xsmall' }}
|
padding={{ top: 'medium', bottom: 'medium' }}
|
||||||
font={{ variation: FontVariation.BODY2_SEMI }}>
|
font={{ variation: FontVariation.BODY2_SEMI }}>
|
||||||
{getString('webhookDialogContent')}
|
{checked ? getString('disableWebhookContent') : getString('enableWebhookContent')}
|
||||||
|
<strong>{` "${row.original.display_name}"`}</strong>
|
||||||
</Text>
|
</Text>
|
||||||
<Layout.Horizontal>
|
<Layout.Horizontal>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user