Loose ends
This commit is contained in:
@@ -403,7 +403,7 @@ const confirmDisableMapsDialogAttributes = (
|
||||
): MiniDialogAttributes => ({
|
||||
title: t("DISABLE_MAPS"),
|
||||
message: <Trans i18nKey={"DISABLE_MAP_DESCRIPTION"} />,
|
||||
continue: { text: t("disable"), action: onConfirm },
|
||||
continue: { text: t("disable"), color: "critical", action: onConfirm },
|
||||
});
|
||||
|
||||
const FileInfoSidebar = styled((props: DialogProps) => (
|
||||
|
||||
@@ -213,6 +213,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||
setLocalMapEnabled(enabled);
|
||||
setMapEnabled(enabled);
|
||||
} catch (e) {
|
||||
// TODO: Handle the error here.
|
||||
log.error("Error while updating mapEnabled", e);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -55,6 +55,7 @@ export const errorDialogAttributes = (
|
||||
icon: <ErrorOutline />,
|
||||
message,
|
||||
continue: { color: "critical" },
|
||||
cancel: false,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user