From a164a849da5f7c5b5c3474b7fa4c66b8d63175ed Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Wed, 12 Feb 2025 15:01:13 +0100 Subject: [PATCH] Fix: add refresh button to media dashboard when custom scripts are defined --- CHANGELOG.md | 1 + src/dashboardWebView/components/Media/FolderCreation.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84cf0355..76827f7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### 🐞 Fixes - Fix for media folder parsing on Windows +- Refresh button was not available on the media dashboard when having custom scripts defined - [#909](https://github.com/estruyf/vscode-front-matter/issues/909): Schema fix for the view modes - [#913](https://github.com/estruyf/vscode-front-matter/issues/913): Fix for relative media paths in page bundles - [#914](https://github.com/estruyf/vscode-front-matter/issues/914): Fix sanitizing of default filenames with an `_` in it diff --git a/src/dashboardWebView/components/Media/FolderCreation.tsx b/src/dashboardWebView/components/Media/FolderCreation.tsx index 5b00293a..6516e896 100644 --- a/src/dashboardWebView/components/Media/FolderCreation.tsx +++ b/src/dashboardWebView/components/Media/FolderCreation.tsx @@ -91,8 +91,9 @@ export const FolderCreation: React.FunctionComponent = ( if (scripts.length > 0) { return ( -
+
{renderPostAssetsButton} + ({ @@ -103,6 +104,8 @@ export const FolderCreation: React.FunctionComponent = ( onClick={onFolderCreation} disabled={!settings?.initialized} /> + +
); }