Skip to content

Commit

Permalink
[feature] #13 select tags of the selected node when switch to tag list
Browse files Browse the repository at this point in the history
  • Loading branch information
BioCrossCoder committed Jan 9, 2025
1 parent a4e936c commit 75d4e3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/entrypoints/sidepanel/components/TagList.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<script lang="ts" setup>
import { Action, TagData } from '@/interface';
import { upsertTag, deleteItem } from '@/composables/utils';
import { useSelectedTagsStore } from '@/composables/store';
import { useSelectedTagsStore, useGraphPositionStore, useFavoritesMapStore } from '@/composables/store';
import { Plus, Delete, Check, Close, Edit } from '@element-plus/icons-vue';
const data = inject('tagData') as Ref<TagData[]>;
const checkList = useSelectedTagsStore().getState();
const position = useGraphPositionStore();
const store = useFavoritesMapStore();
onMounted(() => {
checkList.value = store.getTags(position.value).value.map((tag: TagData) => tag.id);
});
const entry = ref('');
const input = ref(false);
const edit = ref('');
Expand Down

0 comments on commit 75d4e3e

Please sign in to comment.