mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-03 09:04:06 -05:00
feature/recipe-patch-improvements (#382)
* automated docs update * recipe rating component * recipe partial updates - closes #25 * use Vue.delete to update store * format * arrow functions * fix tests * format * initial context menu * localize * add confirmation dialog * context menu * fix bare exception * update line length * format all file with prettier * update changelog * download as json * update python dependencies * update javascript dependencies Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -38,9 +38,7 @@ router.afterEach(to => {
|
||||
const title = await to.meta.title(to);
|
||||
document.title = title + TITLE_SUFFIX;
|
||||
} else {
|
||||
document.title = i18n.t(to.meta.title)
|
||||
? i18n.t(to.meta.title) + TITLE_SUFFIX
|
||||
: DEFAULT_TITLE;
|
||||
document.title = i18n.t(to.meta.title) ? i18n.t(to.meta.title) + TITLE_SUFFIX : DEFAULT_TITLE;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import Planner from "@/pages/MealPlan/Planner";
|
||||
import ThisWeek from "@/pages/MealPlan/ThisWeek";
|
||||
import { api } from "@/api";
|
||||
|
||||
import i18n from '@/i18n.js';
|
||||
import i18n from "@/i18n.js";
|
||||
import utils from "@/utils";
|
||||
|
||||
export const mealRoutes = [
|
||||
@@ -24,10 +24,10 @@ export const mealRoutes = [
|
||||
path: "/meal-plan/today",
|
||||
beforeEnter: async (_to, _from, next) => {
|
||||
await todaysMealRoute().then(redirect => {
|
||||
if(redirect) {
|
||||
if (redirect) {
|
||||
next(redirect);
|
||||
} else {
|
||||
utils.notify.error(i18n.t('meal-plan.no-meal-planned-for-today'));
|
||||
utils.notify.error(i18n.t("meal-plan.no-meal-planned-for-today"));
|
||||
next(_from);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user