mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
#783 - Always show custom panel views
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- [#773](https://github.com/estruyf/vscode-front-matter/issues/773): Added the ability to rename content files
|
||||
- [#777](https://github.com/estruyf/vscode-front-matter/issues/777): Show an error in the metadata panel if something went wrong while parsing the front matter
|
||||
- [#778](https://github.com/estruyf/vscode-front-matter/issues/778): Added the ability to open a file or webpage when custom scripts is completed
|
||||
- [#783](https://github.com/estruyf/vscode-front-matter/issues/783): Always show the custom panel view
|
||||
|
||||
### ⚡️ Optimizations
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import * as l10n from "@vscode/l10n"
|
||||
import { LocalizationKey } from '../../localization';
|
||||
import { InitializeAction } from './InitializeAction';
|
||||
import { Actions } from './Actions';
|
||||
import { CustomView } from './CustomView';
|
||||
|
||||
export interface IBaseViewProps {
|
||||
settings: PanelSettings | undefined;
|
||||
@@ -56,6 +57,8 @@ const BaseView: React.FunctionComponent<IBaseViewProps> = ({
|
||||
<>
|
||||
<GitAction settings={settings} />
|
||||
|
||||
<CustomView />
|
||||
|
||||
<FeatureFlag features={mode?.features || [...allPanelValues]} flag={FEATURE_FLAG.panel.globalSettings}>
|
||||
<GlobalSettings settings={settings} isBase />
|
||||
</FeatureFlag>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { CustomPanelViewResult } from '../../../models';
|
||||
import { Collapsible } from '../Collapsible';
|
||||
|
||||
export interface ICustomViewProps {
|
||||
metadata: any;
|
||||
metadata?: any;
|
||||
}
|
||||
|
||||
export const CustomView: React.FunctionComponent<ICustomViewProps> = ({ metadata }: React.PropsWithChildren<ICustomViewProps>) => {
|
||||
|
||||
Reference in New Issue
Block a user