Small bug fixes and UI improvements
This commit is contained in:
parent
16121ff547
commit
6fb5737118
4 changed files with 13 additions and 2 deletions
1
.dev/build_dev.sh
Normal file
1
.dev/build_dev.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docker build -t flame:dev -f .docker/Dockerfile .
|
|
@ -65,7 +65,7 @@ export const CustomQueries = (): JSX.Element => {
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
{customQueries.length && (
|
{customQueries.length ? (
|
||||||
<CompactTable headers={['Name', 'Prefix', 'Actions']}>
|
<CompactTable headers={['Name', 'Prefix', 'Actions']}>
|
||||||
{customQueries.map((q: Query, idx) => (
|
{customQueries.map((q: Query, idx) => (
|
||||||
<Fragment key={idx}>
|
<Fragment key={idx}>
|
||||||
|
@ -82,6 +82,8 @@ export const CustomQueries = (): JSX.Element => {
|
||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
</CompactTable>
|
</CompactTable>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -23,7 +23,7 @@ interface Props {
|
||||||
export const ThemeBuilder = ({ themes }: Props): JSX.Element => {
|
export const ThemeBuilder = ({ themes }: Props): JSX.Element => {
|
||||||
const {
|
const {
|
||||||
auth: { isAuthenticated },
|
auth: { isAuthenticated },
|
||||||
theme: { themeInEdit },
|
theme: { themeInEdit, userThemes },
|
||||||
} = useSelector((state: State) => state);
|
} = useSelector((state: State) => state);
|
||||||
|
|
||||||
const { editTheme } = bindActionCreators(actionCreators, useDispatch());
|
const { editTheme } = bindActionCreators(actionCreators, useDispatch());
|
||||||
|
@ -38,6 +38,13 @@ export const ThemeBuilder = ({ themes }: Props): JSX.Element => {
|
||||||
}
|
}
|
||||||
}, [themeInEdit]);
|
}, [themeInEdit]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (isInEdit && !userThemes.length) {
|
||||||
|
toggleIsInEdit(false);
|
||||||
|
toggleShowModal(false);
|
||||||
|
}
|
||||||
|
}, [userThemes]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes.ThemeBuilder}>
|
<div className={classes.ThemeBuilder}>
|
||||||
{/* MODALS */}
|
{/* MODALS */}
|
||||||
|
|
|
@ -33,6 +33,7 @@ export const weatherSettingsTemplate: WeatherForm = {
|
||||||
export const generalSettingsTemplate: GeneralForm = {
|
export const generalSettingsTemplate: GeneralForm = {
|
||||||
searchSameTab: false,
|
searchSameTab: false,
|
||||||
defaultSearchProvider: 'l',
|
defaultSearchProvider: 'l',
|
||||||
|
secondarySearchProvider: 'd',
|
||||||
pinAppsByDefault: true,
|
pinAppsByDefault: true,
|
||||||
pinCategoriesByDefault: true,
|
pinCategoriesByDefault: true,
|
||||||
useOrdering: 'createdAt',
|
useOrdering: 'createdAt',
|
||||||
|
|
Loading…
Reference in a new issue