Added variant relation type.

This commit is contained in:
2026-11-21 03:07:32 +01:00
parent 37309473f8
commit 25c68f96a9
3 changed files with 98 additions and 76 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ let searchTimeout = null;
let searchCount = 0;
// each type can be read from either side, e.g. this scene is a 'Remaster of' or 'Remastered as' the selected scene
const options = computed(() => props.types.flatMap((type) => ['target', 'source'].map((direction) => ({
// symmetric types like variants read the same both ways
const options = computed(() => props.types.flatMap(({ type, symmetric }) => (symmetric ? ['both'] : ['target', 'source']).map((direction) => ({
key: `${type}-${direction}`,
type,
direction,