Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
change webhook sent confirmation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Oct 18, 2016
1 parent 2beb2b8 commit b25e3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Expand Up @@ -360,16 +360,10 @@ public void triggerManualWebhookEvent() {
webhookService.processManualEvent(projectSlug, versionSlug,
selectedLocale.getLocaleId(), manualWebhooks);
conversationScopeMessages.setMessage(FacesMessage.SEVERITY_INFO,
msgs.format("jsf.iteration.manualWebhook.triggered", getManualWebhookNames()));
msgs.format("jsf.iteration.manualWebhook.triggered"));
}
}

public String getManualWebhookNames() {
Set<String> webhookNames = getManualWebhooks().stream()
.map(WebHook::getName).collect(Collectors.toSet());
return Joiner.on(", ").skipNulls().join(webhookNames);
}

// TODO Serializable only because it's a dependent bean
@NoArgsConstructor
public static class CopyVersionHandler extends CopyAction implements Serializable {
Expand Down
2 changes: 1 addition & 1 deletion zanata-war/src/main/resources/messages.properties
Expand Up @@ -652,7 +652,7 @@ jsf.iteration.ExportTMX.Language=Export {0} Documents to TMX
jsf.iteration.files.NoFiles=No Files Available

jsf.iteration.triggerWebHook=Trigger manual webhook for {0}
jsf.iteration.manualWebhook.triggered=Webhook request(s) for {0} are sent.
jsf.iteration.manualWebhook.triggered=Webhook sent.

! local directory path where a document is located within the project
jsf.iteration.files.Path=Path
Expand Down

0 comments on commit b25e3cb

Please sign in to comment.