Skip to content

Commit

Permalink
#2218 Add local storage of setting, remove code
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalizer committed Dec 30, 2024
1 parent 29dd7b2 commit cdc4b04
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.
*/
<script setup>
import { computed, onMounted, ref } from 'vue'
import {useStorage} from "@vueuse/core";
import SkillProgress from '@/skills-display/components/progress/SkillProgress.vue'
import { useScrollSkillsIntoViewState } from '@/skills-display/stores/UseScrollSkillsIntoViewState.js'
import { useSkillsDisplayService } from '@/skills-display/services/UseSkillsDisplayService.js'
Expand All @@ -27,10 +28,6 @@ import { useSkillsDisplayAttributesState } from '@/skills-display/stores/UseSkil
import { useRoute } from 'vue-router'
import { useThemesHelper } from '@/components/header/UseThemesHelper.js'
// subject: {
// type: Object,
// required: true
// },
const props = defineProps({
showDescriptions: {
type: Boolean,
Expand Down Expand Up @@ -211,20 +208,15 @@ const skillsToShow = computed(() => {
})
resultSkills = filteredRes
}
// this.skillsInternal = resultSkills
return resultSkills
})
const showDescriptionsInternal = ref(false)
const isLastViewedScrollSupported = computed(() => {
return !parentFrame.parentFrame || parentFrame.isLastViewedScrollSupported
})
// this.lastViewedButtonDisabled = resultSkills.findIndex((i) => i.isLastViewed || (i.children && i.children.findIndex((c) => c.isLastViewed) >= 0)) < 0
const expandGroups = ref(true);
const onGroupsToggle = () => {
}
const expandGroups = useStorage(`client-groups-expanded`, true)
</script>
<template>
Expand Down Expand Up @@ -284,7 +276,6 @@ const onGroupsToggle = () => {
<span class="text-muted pr-1 align-content-center" v-if="!route.params.badgeId">Expand Groups:</span>
<InputSwitch v-model="expandGroups"
v-if="!route.params.badgeId"
@change="onGroupsToggle"
aria-label="Expand Groups"
data-cy="expandGroupsSwitch" />
</div>
Expand Down

0 comments on commit cdc4b04

Please sign in to comment.