Skip to content

Commit

Permalink
toolbar button now change a view
Browse files Browse the repository at this point in the history
  • Loading branch information
michalm17 committed May 12, 2022
1 parent 47c3af6 commit 07481c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@
</q-header>

<q-page-container>
<router-view />
<router-view v-if="viewWindow" />
<AboutWindow v-else />
</q-page-container>
<q-footer reveal:true bordered:true> Abc</q-footer>
</q-layout>
</template>

<script>
import { defineComponent, ref } from "vue";
import AboutWindow from "src/components/AboutWindow.vue";
const view = "gallery";
export default defineComponent({
name: "MainLayout",
components: {},
components: { AboutWindow },
data() {
return {
Expand Down
2 changes: 0 additions & 2 deletions src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import { defineComponent } from "vue";
import GalleryC from "src/components/GalleryC.vue";
import AboutWindow from "../components/AboutWindow.vue";
export default defineComponent({
name: "IndexPage",
components: { GalleryC },
Expand Down

0 comments on commit 07481c8

Please sign in to comment.