A platform for community discussion. Free, open, simple.
UX: add creator column to workflow table (#41188)
chapoi7615c17cb9d6
diff --git a/plugins/discourse-workflows/admin/assets/javascripts/admin/components/workflows/index.gjs b/plugins/discourse-workflows/admin/assets/javascripts/admin/components/workflows/index.gjsindex 857b5922b50..e168f981301 100644--- a/plugins/discourse-workflows/admin/assets/javascripts/admin/components/workflows/index.gjs+++ b/plugins/discourse-workflows/admin/assets/javascripts/admin/components/workflows/index.gjs@@ -111,6 +111,9 @@ export default class WorkflowsIndex extends Component {/></:toolbar><:head>+ <th class="d-table__header-cell">{{i18n+ "discourse_workflows.creator"+ }}</th><th class="d-table__header-cell">{{i18n"discourse_workflows.workflow_name"}}</th>@@ -128,6 +131,19 @@ export default class WorkflowsIndex extends Component {}}</th></:head><:row as |workflow|>+ <td class="d-table__cell --detail workflows-index__creator">+ <div class="d-table__mobile-label">+ {{i18n "discourse_workflows.creator"}}+ </div>+ {{#if workflow.createdBy}}+ <a+ href={{workflow.createdBy.path}}+ class="workflows-index__creator-link"+ >+ {{dAvatar workflow.createdBy imageSize="tiny"}}+ </a>+ {{/if}}+ </td><td class="d-table__cell --overview workflows-index__name"><LinkTo@route="adminPlugins.show.discourse-workflows.show"diff --git a/plugins/discourse-workflows/config/locales/client.en.yml b/plugins/discourse-workflows/config/locales/client.en.ymlindex b1736a91ee1..55aefcbb243 100644--- a/plugins/discourse-workflows/config/locales/client.en.yml+++ b/plugins/discourse-workflows/config/locales/client.en.yml@@ -119,6 +119,7 @@ en:leave_without_publishing: "Leave without publishing"keep_editing: "Keep editing"workflow_name: "Workflow name"+ creator: "Creator"last_editor: "Last editor"last_update: "Last update"last_run: "Last run"