Skip to content

Commit

Permalink
Small bug fixes and UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelmalak committed Mar 25, 2022
1 parent 16121ff commit 6fb5737
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dev/build_dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t flame:dev -f .docker/Dockerfile .
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const CustomQueries = (): JSX.Element => {
</Modal>

<section>
{customQueries.length && (
{customQueries.length ? (
<CompactTable headers={['Name', 'Prefix', 'Actions']}>
{customQueries.map((q: Query, idx) => (
<Fragment key={idx}>
Expand All @@ -82,6 +82,8 @@ export const CustomQueries = (): JSX.Element => {
</Fragment>
))}
</CompactTable>
) : (
<></>
)}

<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Props {
export const ThemeBuilder = ({ themes }: Props): JSX.Element => {
const {
auth: { isAuthenticated },
theme: { themeInEdit },
theme: { themeInEdit, userThemes },
} = useSelector((state: State) => state);

const { editTheme } = bindActionCreators(actionCreators, useDispatch());
Expand All @@ -38,6 +38,13 @@ export const ThemeBuilder = ({ themes }: Props): JSX.Element => {
}
}, [themeInEdit]);

useEffect(() => {
if (isInEdit && !userThemes.length) {
toggleIsInEdit(false);
toggleShowModal(false);
}
}, [userThemes]);

return (
<div className={classes.ThemeBuilder}>
{/* MODALS */}
Expand Down
1 change: 1 addition & 0 deletions client/src/utility/templateObjects/settingsTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const weatherSettingsTemplate: WeatherForm = {
export const generalSettingsTemplate: GeneralForm = {
searchSameTab: false,
defaultSearchProvider: 'l',
secondarySearchProvider: 'd',
pinAppsByDefault: true,
pinCategoriesByDefault: true,
useOrdering: 'createdAt',
Expand Down

0 comments on commit 6fb5737

Please sign in to comment.