Skip to content

Commit

Permalink
[GH-939]: Improved the use of sprintf for the content of modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Kshitij-Katiyar committed Oct 10, 2023
1 parent 6820a1c commit 862a229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/setup_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const (
)

const (
newline = "\n"
lineBreak = "\n"
webhookURL = "\n [{{.WebhookURL}}]({{.WebhookURL}})"
)

Expand Down Expand Up @@ -405,7 +405,7 @@ func (p *Plugin) stepWebhook() flow.Step {
Color: flow.ColorPrimary,
Dialog: &model.Dialog{
Title: "Jira Webhook URL",
IntroductionText: "Please copy and use the link below as webhook URL. Once you have entered all options and the webhook URL, select **Create**. \n" + fmt.Sprintf("%s %s", newline, webhookURL),
IntroductionText: fmt.Sprintf("Please copy and use the link below as webhook URL. Once you have entered all options and the webhook URL, select **Create**. %s", lineBreak) + fmt.Sprintf("%s %s", lineBreak, webhookURL),
SubmitLabel: "Continue",
},
OnDialogSubmit: flow.DialogGoto(stepWebhookDone),
Expand Down

0 comments on commit 862a229

Please sign in to comment.