Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3b80b02
Merge remote-tracking branch 'upstream/main' into 1291_map_to_events_…
nicki182 May 31, 2025
243b25f
chore: created new components and refactor
nicki182 Jun 7, 2025
d3378d2
chore: created new components and refactor
nicki182 Jun 7, 2025
ca1b226
Merge remote-tracking branch 'origin/1291_map_to_events_page' into 12…
nicki182 Jun 7, 2025
5ba2682
fix: cluster and pointers are showing
nicki182 Jun 7, 2025
078c897
chore: refacor sidebar and change folder structure
nicki182 Jun 7, 2025
ecea5bf
chore: form view selector refactor
nicki182 Jun 8, 2025
dbb0f8e
fix: change selector when clicked new option
nicki182 Jun 9, 2025
1db0806
chore: added new views with selector
nicki182 Jun 9, 2025
89937a0
fix: default view type when first load
nicki182 Jun 9, 2025
18865fa
Minor edits to contributing guide to add i18n-check usage guide
andrewtavis Jun 19, 2025
67bf9c4
Minor change to docs header and don't include formatting in dependenc…
andrewtavis Jun 20, 2025
75e7ed5
chore: created new components and refactor
nicki182 Jun 7, 2025
4869def
fix: cluster and pointers are showing
nicki182 Jun 7, 2025
1ddb5e9
chore: refacor sidebar and change folder structure
nicki182 Jun 7, 2025
50874f1
chore: form view selector refactor
nicki182 Jun 8, 2025
64cb5c1
fix: change selector when clicked new option
nicki182 Jun 9, 2025
59c65b2
fix: default view type when first load
nicki182 Jun 9, 2025
7ee5df6
fix: fix bug to view tootil in poiter and view default in events fix
nicki182 Jun 20, 2025
961c984
Merge remote-tracking branch 'refs/remotes/origin/1291_map_to_events_…
nicki182 Jun 20, 2025
6708081
fix: add missing header
nicki182 Jun 21, 2025
94420d8
fix: eliminated unnesary foldder and files
nicki182 Jun 21, 2025
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
Prev Previous commit
Next Next commit
chore: form view selector refactor
  • Loading branch information
nicki182 committed Jun 20, 2025
commit 50874f1a664a335768cd82b27cc18adb4572e6db
22 changes: 17 additions & 5 deletions frontend/components/form/FormViewSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<template>
<RadioGroup
v-model="value"
class="flex h-11 w-full items-center justify-around divide-primary-text"
class="flex h-11 w-full justify-around divide-primary-text"
:aria-label="$t('i18n.components.form_view_selector.title_aria_label')"
>
<RadioGroupOption
Expand All @@ -12,15 +12,20 @@
class="flex flex-1 items-center justify-center gap-2"
:name="option.label || ''"
:value="option.value"
as="button"
>
{{ console.log(option, checked) }}
<div
v-if="option.isIcon"
class="h-full flex-1"
:class="checked ? 'style-menu-option-cta' : 'style-menu-option'"
:aria-label="$t(option.aria_label)"
>
<Icon
v-if="option.isIcon"
:name="option.content as string"
class="h-6 w-6"
:aria-hidden="true"
/>
</div>
{{ !option.isIcon ? option.content : "" }}
</RadioGroupOption>
</RadioGroup>
Expand All @@ -45,9 +50,16 @@ const props = defineProps<{
const emit = defineEmits<{
(e: "update:modelValue", value: typeof props.modelValue): void;
}>();
console.log("FormViewSelector", props.modelValue, props.options);

const value = computed({
get: () => props.modelValue,
set: (val) => emit("update:modelValue", val),
get: () =>{
console.log("FormViewSelector get", props.modelValue);
return props.modelValue
},
set: (val) => {
console.log("FormViewSelector set", val);
emit("update:modelValue", val)
},
});
</script>
170 changes: 0 additions & 170 deletions frontend/components/sidebar/left/index/SidebarLeftIndex.vue

This file was deleted.

This file was deleted.

This file was deleted.