mirror of
https://github.com/harness/drone.git
synced 2025-05-02 05:30:13 +00: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
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user