Skip to content

Commit a164a84

Browse files
committed
Fix: add refresh button to media dashboard when custom scripts are defined
1 parent 710ef13 commit a164a84

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### 🐞 Fixes
1414

1515
- Fix for media folder parsing on Windows
16+
- Refresh button was not available on the media dashboard when having custom scripts defined
1617
- [#909](https://github.com/estruyf/vscode-front-matter/issues/909): Schema fix for the view modes
1718
- [#913](https://github.com/estruyf/vscode-front-matter/issues/913): Fix for relative media paths in page bundles
1819
- [#914](https://github.com/estruyf/vscode-front-matter/issues/914): Fix sanitizing of default filenames with an `_` in it

Diff for: src/dashboardWebView/components/Media/FolderCreation.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ export const FolderCreation: React.FunctionComponent<IFolderCreationProps> = (
9191

9292
if (scripts.length > 0) {
9393
return (
94-
<div className="flex flex-1 justify-start">
94+
<div className="flex flex-1 justify-start space-x-2">
9595
{renderPostAssetsButton}
96+
9697
<ChoiceButton
9798
title={l10n.t(LocalizationKey.dashboardMediaFolderCreationFolderCreate)}
9899
choices={scripts.map((s) => ({
@@ -103,6 +104,8 @@ export const FolderCreation: React.FunctionComponent<IFolderCreationProps> = (
103104
onClick={onFolderCreation}
104105
disabled={!settings?.initialized}
105106
/>
107+
108+
<RefreshDashboardData />
106109
</div>
107110
);
108111
}

0 commit comments

Comments
 (0)