mirror of
https://github.com/fmhy/edit.git
synced 2026-01-14 07:51:25 +11:00
Keep filters mutually exclusive
This commit is contained in:
parent
01dfd2ec26
commit
e427ae92ba
2 changed files with 23 additions and 4 deletions
|
|
@ -1,8 +1,15 @@
|
|||
<script setup lang="ts">
|
||||
import Switch from './Switch.vue'
|
||||
|
||||
const toggleIndexes = () =>
|
||||
document.documentElement.classList.toggle('indexes-only')
|
||||
const toggleIndexes = () => {
|
||||
const root = document.documentElement
|
||||
const enabling = !root.classList.contains('indexes-only')
|
||||
root.classList.toggle('indexes-only')
|
||||
|
||||
if (enabling && root.classList.contains('starred-only')) {
|
||||
root.classList.remove('starred-only')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue