Use Activity type for Activity modal dialog title.

Use Activity type for Activity modal dialog title.
This commit is contained in:
axeleron007 2021-06-17 10:44:30 +03:00
parent 9eab6e9625
commit 48196ec65d
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ namespace Elsa.Activities.Webhooks.ActivityTypes
{
var descriptor = new ActivityDescriptor
{
Type = WebhooksActivityType, //$"{webhook.Name} {WebhooksActivityType}",
Type = $"{webhook.Name} {WebhooksActivityType}",
DisplayName = $"{WebhooksActivityType}: {webhook.Name}",
Category = WebhooksActivityCategory,
Outcomes = new[] { OutcomeNames.Done },

View file

@ -77,7 +77,6 @@ export class ElsaMultiExpressionEditor {
}
render() {
debugger
return <div>
<div class="elsa-mb-1">
<div class="elsa-flex">

View file

@ -92,6 +92,7 @@ export class ElsaActivityEditorModal {
}
render() {
debugger
const renderProps = this.renderProps;
const activityDescriptor: ActivityDescriptor = renderProps.activityDescriptor;
const propertyCategories = renderProps.propertyCategories;
@ -112,7 +113,7 @@ export class ElsaActivityEditorModal {
<div>
<div>
<h3 class="elsa-text-lg elsa-leading-6 elsa-font-medium elsa-text-gray-900">
{activityDescriptor.displayName}
{activityDescriptor.type}
</h3>
<p class="elsa-mt-1 elsa-text-sm elsa-text-gray-500">
{activityDescriptor.description}