mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
Fix/multiple bug reports (#1002)
* fix type issues for #999 * fix regression #995 * remove error from frontend and log error #996 * cleanup darkmode on login page * keep primary color bg
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { Plugin } from "@nuxt/types"
|
||||
import { Plugin } from "@nuxt/types";
|
||||
import { NuxtAxiosInstance } from "@nuxtjs/axios";
|
||||
import { alert } from "~/composables/use-toast";
|
||||
|
||||
const toastPlugin: Plugin = ({ $axios }: { $axios: NuxtAxiosInstance }) => {
|
||||
$axios.onResponse((response) => {
|
||||
if (response.data.message) {
|
||||
if (response?.data?.message) {
|
||||
alert.info(response.data.message);
|
||||
}
|
||||
});
|
||||
@@ -13,6 +13,6 @@ const toastPlugin: Plugin = ({ $axios }: { $axios: NuxtAxiosInstance }) => {
|
||||
alert.error(error.response.data.detail.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default toastPlugin;
|
||||
|
||||
Reference in New Issue
Block a user