Skip to content

Commit

Permalink
Cleanup vues
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Feb 8, 2023
1 parent b190257 commit 691228a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions _project/frontend-nuxt/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ onMounted(() => {
<NuxtLink :to="{ name: 'index' }"
><img :alt="appConfig.title" src="/img/logo.png" width="110"
/></NuxtLink>
|
<NuxtLink :to="{ name: 'blog' }">Blog</NuxtLink>
</v-app-bar-title>

<div>{{ router.currentRoute.value.name }}</div>
Expand Down
2 changes: 1 addition & 1 deletion _project/frontend-nuxt/pages/blog/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const [publishing, publish] = useAndHandleMutation(
</div>
<div v-if="latestPost">
<v-btn @click="publish({ id })" :disabled="publishing.loading">
Publish to all blog sites {{ publishing.loading && `(${progress})` }}
Publish to all blog sites {{ publishing.loading ? `(${progress})` : "" }}
</v-btn>
<div>Title: {{ latestPost.title }}</div>
<div>Body: {{ latestPost.body }}</div>
Expand Down
4 changes: 2 additions & 2 deletions _project/frontend-nuxt/pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const createPost = flow(createPost_, _ => _.then(_ => reloadPosts()))
<div>
<div>
a new Title and a new body
<button
<v-btn
@click="
createPost({
title: MO.ReasonableString('empty'),
Expand All @@ -22,7 +22,7 @@ const createPost = flow(createPost_, _ => _.then(_ => reloadPosts()))
"
>
Create new post
</button>
</v-btn>
</div>
Here's a Post List
<ul v-if="latestPosts">
Expand Down

0 comments on commit 691228a

Please sign in to comment.