mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
feat(plugin-workflow): show workflow key as tooltip on title (#4178)
This commit is contained in:
parent
bcf6c1b677
commit
05c5acd8b7
@ -275,7 +275,13 @@ export function ExecutionCanvas() {
|
|||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
items={[
|
items={[
|
||||||
{ title: <Link to={app.pluginSettingsManager.getRoutePath('workflow')}>{lang('Workflow')}</Link> },
|
{ title: <Link to={app.pluginSettingsManager.getRoutePath('workflow')}>{lang('Workflow')}</Link> },
|
||||||
{ title: <Link to={getWorkflowDetailPath(workflow.id)}>{workflow.title}</Link> },
|
{
|
||||||
|
title: (
|
||||||
|
<Tooltip title={`Key: ${workflow.key}`}>
|
||||||
|
<Link to={getWorkflowDetailPath(workflow.id)}>{workflow.title}</Link>
|
||||||
|
</Tooltip>
|
||||||
|
),
|
||||||
|
},
|
||||||
{ title: <ExecutionsDropdown /> },
|
{ title: <ExecutionsDropdown /> },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Link, useNavigate } from 'react-router-dom';
|
import { Link, useNavigate } from 'react-router-dom';
|
||||||
import { App, Breadcrumb, Button, Dropdown, Result, Spin, Switch, message } from 'antd';
|
import { App, Breadcrumb, Button, Dropdown, Result, Spin, Switch, Tooltip, message } from 'antd';
|
||||||
import { DownOutlined, EllipsisOutlined, RightOutlined } from '@ant-design/icons';
|
import { DownOutlined, EllipsisOutlined, RightOutlined } from '@ant-design/icons';
|
||||||
import {
|
import {
|
||||||
ActionContextProvider,
|
ActionContextProvider,
|
||||||
@ -157,7 +157,13 @@ export function WorkflowCanvas() {
|
|||||||
<Breadcrumb
|
<Breadcrumb
|
||||||
items={[
|
items={[
|
||||||
{ title: <Link to={app.pluginSettingsManager.getRoutePath('workflow')}>{lang('Workflow')}</Link> },
|
{ title: <Link to={app.pluginSettingsManager.getRoutePath('workflow')}>{lang('Workflow')}</Link> },
|
||||||
{ title: <strong>{workflow.title}</strong> },
|
{
|
||||||
|
title: (
|
||||||
|
<Tooltip title={`Key: ${workflow.key}`}>
|
||||||
|
<strong>{workflow.title}</strong>
|
||||||
|
</Tooltip>
|
||||||
|
),
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user