mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-06 01:41:48 +02:00
#783 - Always show custom panel views
This commit is contained in:
@@ -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