This commit is contained in:
Lucas Verney 2018-03-11 23:46:28 +01:00
parent 8a5450c40c
commit 9813796a5d
4 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<template>
<v-flex xs12>
<ErrorDialog :v-model="error" :description="$t('error.title')" />
<ErrorDialog v-model="error" :description="$t('error.title')" />
<h2 v-if="recipe">{{ $t('new.edit_recipe') }}</h2>
<h2 v-else>{{ $t('new.add_manually') }}</h2>

View File

@ -17,7 +17,7 @@
export default {
props: {
description: String,
value: [Error, Boolean],
value: Error,
},
computed: {
error: {

View File

@ -2,9 +2,9 @@
<v-container fluid grid-list-md>
<Loader v-if="isLoading"></Loader>
<v-layout row wrap v-else>
<ErrorDialog :v-model="error" :description="$t('error.unable_load_recipes')" />
<ErrorDialog v-model="error" :description="$t('error.unable_load_recipes')" />
<v-flex xs12 v-if="!recipes.length" class="text-xs-center">
<v-flex xs12 v-if="!error && !recipes.length" class="text-xs-center">
<p>{{ $t('home.onboarding') }}</p>
</v-flex>
<v-flex

View File

@ -2,9 +2,9 @@
<v-container grid-list-md class="panel">
<Loader v-if="isLoading"></Loader>
<v-layout row v-else>
<ErrorDialog :v-model="errorDelete" :description="$t('error.unable_delete_recipe')" />
<ErrorDialog :v-model="errorFetch" :description="$t('error.unable_fetch_recipe')" />
<ErrorDialog :v-model="errorRefetch" :description="$t('error.unable_refetch_recipe')" />
<ErrorDialog v-model="errorDelete" :description="$t('error.unable_delete_recipe')" />
<ErrorDialog v-model="errorFetch" :description="$t('error.unable_fetch_recipe')" />
<ErrorDialog v-model="errorRefetch" :description="$t('error.unable_refetch_recipe')" />
<v-dialog v-model="refetchConfirm" max-width="500px">
<v-card>