feat: [code-100]: pop-up panel for webhook on/off (#321)

This commit is contained in:
Calvin Lee 2023-02-09 14:37:12 -07:00 committed by GitHub
parent 5cc2b03156
commit 5cd22f0689
3 changed files with 12 additions and 3 deletions

View File

@ -82,6 +82,8 @@ export interface StringsMap {
deployKeys: string
description: string
diff: string
disableWebhookContent: string
disableWebhookTitle: string
draft: string
edit: string
editFile: string
@ -91,6 +93,8 @@ export interface StringsMap {
emptyRepoHeader: string
emptyRepoInclude: string
enableSSLVerification: string
enableWebhookContent: string
enableWebhookTitle: string
enabled: string
enterDescription: string
enterNewBranchName: string

View File

@ -330,3 +330,7 @@ noOptionalReviewers: No Optional Reviewers
noRequiredReviewers: No Required Reviewers
reviewers: Reviewers
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

View File

@ -91,12 +91,13 @@ export default function Webhooks() {
<Container padding={'medium'} width={250}>
<Layout.Vertical>
<Text font={{ variation: FontVariation.H5, size: 'medium' }}>
{getString('webhookDialogTitle')}
{checked ? getString('disableWebhookTitle') : getString('enableWebhookTitle')}
</Text>
<Text
padding={{ top: 'medium', bottom: 'medium', left: 'xsmall' }}
padding={{ top: 'medium', bottom: 'medium' }}
font={{ variation: FontVariation.BODY2_SEMI }}>
{getString('webhookDialogContent')}
{checked ? getString('disableWebhookContent') : getString('enableWebhookContent')}
<strong>{` "${row.original.display_name}"`}</strong>
</Text>
<Layout.Horizontal>
<Button