Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sebsp 67 gallery view #12

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions client/src/components/layout/ContainerLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<template v-if="useRoute().name == 'GalleryViewPage'">

<div>
<v-chip class="session-info-item">
Page: {{ appBarStore.galleryCurrentPage }} / {{ appBarStore.galleryMaxPages }}
</v-chip>
<v-chip class="session-info-item">
Number of Sessions: {{ appBarStore.gallerNumberOfSessions }}
</v-chip>
Expand Down Expand Up @@ -76,13 +79,13 @@
</v-menu>
</div>
</template>
<!-- <div class="switch-container">
<v-switch class="mx-auto" label="theme test" color="primary" v-model="useLigtTheme"></v-switch>
</div> -->
<!-------–--------------------->

<!--profile icon menu-->
<div class="profile-icon-container">
<v-menu>
<v-menu
:close-on-content-click="false">

<template v-slot:activator="{ props }">
<v-btn v-bind="props" color="primary" icon="mdi-account-circle" size="x-large" @click="userMenuOpened()"></v-btn>
</template>
Expand All @@ -98,6 +101,12 @@

<v-divider></v-divider>

<v-list-item>
<v-switch :label="themeSwitchLabel" v-model="useLigtTheme" color="primary" hide-details></v-switch>
</v-list-item>

<v-divider></v-divider>

<v-list-item class="d-flex text-decoration-underline text-blue" @click="authStore.logout()">
<v-list-item-title>{{ $t("navigation.sign-out") }}</v-list-item-title>
</v-list-item>
Expand Down Expand Up @@ -125,7 +134,6 @@
import * as userAccountViewService from "@/services/component-services/userAccountViewService";
import { useRoute } from "vue-router";
import { useTheme } from "vuetify";
import router from "@/router";

//navigation
const drawer = ref();
Expand All @@ -140,6 +148,7 @@
const userAccountStore = useUserAccountStore();

//theme
const themeSwitchLabel = ref<string>("Dark");
const useLigtTheme = ref<boolean>(true);
const theme = useTheme();

Expand All @@ -153,7 +162,8 @@
];

watch(useLigtTheme, () => {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
theme.global.name.value = theme.global.current.value.dark ? "light" : "dark";
themeSwitchLabel.value = theme.global.current.value.dark ? "Light" : "Dark";
});

function changeGridSize(gridSize: GridSize){
Expand Down
300 changes: 0 additions & 300 deletions client/src/components/views/GalleryViewPage.vue

This file was deleted.

Loading