#783 - Always show custom panel views

This commit is contained in:
Elio Struyf
2024-03-27 10:57:30 +01:00
parent 7b20d9f23d
commit c17400ce6d
3 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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>) => {