YANG QIA 61f95f78c2
feat(data-vi): allow to add refresh button and set auto refresh interval (#5112)
* feat(data-vi): allow to set auto refresh interval for charts

* feat(data-vi): allow to add refresh button and set auto refresh interval

* fix: build

* fix: bug

* chore: optimize global auto refresh

* chore: remove console.log

* fix: remove console log
2024-09-03 14:46:43 +08:00

26 lines
732 B
TypeScript

/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { SchemaInitializer } from '@nocobase/client';
import { lang } from '../locale';
import { RefreshActionInitializer } from './RefreshAction';
export const chartActionsInitializer = new SchemaInitializer({
name: 'chart:configureActions',
title: lang('Configure actions'),
icon: 'SettingOutlined',
items: [
{
name: 'refresh',
title: lang('Refresh'),
Component: RefreshActionInitializer,
},
],
});