Skip to content

Commit

Permalink
fix #768, show another message when no extensions to open are available
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBruchmann authored and PKuhlmay committed Apr 8, 2024
1 parent 99bdea6 commit 62ad2ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Build/Sources/components/ActionButtonsComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,13 @@ export const ActionButtonsComponent = (props) => {
setShow(true);
setModalTitle('Available extensions');
setModalClassname('bg-info text-dark');
let message = 'Currently no extensions are found for editing.';
if (extensions.result.length > 0) {
message = 'Please select an extension to open:';
}
setModalBodyJsx(
<>
<p>Please select an extension to open</p>
<p>{message}</p>
<div className="list-group">
{extensions.result.map((extension) => (
<button
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/styles.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 62ad2ce

Please sign in to comment.