remove redundant click handler
This commit is contained in:
@@ -6,15 +6,11 @@ const store = useIRCStore();
|
|||||||
const bufferList = computed(() => {
|
const bufferList = computed(() => {
|
||||||
return Object.keys(buffers);
|
return Object.keys(buffers);
|
||||||
});
|
});
|
||||||
|
|
||||||
function click(bufferName) {
|
|
||||||
store.setActiveBuffer(bufferName);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<v-list>
|
<v-list>
|
||||||
<v-list-item v-for="buf in bufferList" @click="click(buf)">
|
<v-list-item v-for="buf in bufferList" @click="store.setActiveBuffer(buf)">
|
||||||
{{ buf }}
|
{{ buf }}
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
|
|||||||
Reference in New Issue
Block a user