* feat: add settingsCenter * fix: style bug * chore: optimized code * refactor: settingCenter Auth * feat: add aclSnippet option * refactor: all plugin's setting center api * feat: add plugin with name * docs: add settings-center doc * fix: settings center menu sort by name * fix: change setting center layout * fix: change hello sort * test: add SettingsCenter.ts test case * fix: bug * fix: acl bug * fix: bug * fix: bug and 404 page * fix: test bug * fix: test bug * fix: bug * fix: locale * fix: styling * fix: rename settingsCenter to pluginSettingsManager * fix: styling * fix: e2e bug * fix: e2e bug * fix: locale * feat: update docs * fix: update --------- Co-authored-by: chenos <chenlinxh@gmail.com>
18 lines
513 B
TypeScript
18 lines
513 B
TypeScript
import React from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
import { useActionContext, useRecord } from '@nocobase/client';
|
|
import { getWorkflowExecutionsPath } from './constant';
|
|
|
|
export const ExecutionLink = () => {
|
|
const { t } = useTranslation();
|
|
const { id } = useRecord();
|
|
const { setVisible } = useActionContext();
|
|
return (
|
|
<Link to={getWorkflowExecutionsPath(id)} onClick={() => setVisible(false)}>
|
|
{t('View')}
|
|
</Link>
|
|
);
|
|
};
|