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:
Hayden
2021-05-01 20:46:02 -08:00
committed by GitHub
parent c196445e61
commit be378cb20c
121 changed files with 18942 additions and 4765 deletions

View File

@@ -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;
}
});
});

View File

@@ -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);
}
});