Skip to content

Commit

Permalink
More eslint issues, unused vars, defining types, and deprecated veuti…
Browse files Browse the repository at this point in the history
…fy props
  • Loading branch information
wssheldon committed Nov 29, 2023
1 parent 33963e6 commit e30b9f3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,7 @@ watch(
}
)
const headers = ref([
{ title: "Signal", key: "signal", sortable: false },
{ title: "Created At", key: "created_at" },
{ title: "", key: "data-table-actions", sortable: false, align: "end" },
])
const selectItem = (item) => {
console.log("Got item", item)
selectedItem.value = item
router.push({ name: "SignalDetails", params: { signal_id: item.raw.id } })
}
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/case/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</template>

<script setup lang="ts">
import { ref, watch, watchEffect } from "vue"
import { ref, watch } from "vue"
import { useStore } from "vuex"
import { useRoute } from "vue-router"
Expand Down
8 changes: 6 additions & 2 deletions src/dispatch/static/dispatch/src/case/SignalInstanceNode.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<script setup>
import { Handle, Position } from "@vue-flow/core"
import { ref, defineEmits } from "vue"
import { defineEmits } from "vue"
const props = defineProps(["label", "data"])
const props = defineProps<{
label: string
data: any
}>()
const emit = defineEmits(["openViewer"])
Expand Down
4 changes: 1 addition & 3 deletions src/dispatch/static/dispatch/src/components/AvatarStack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ item }}
</v-avatar>

<v-menu offset-y v-model="menu" :close-on-content-click="false">
<v-menu location="start" v-model="menu" :close-on-content-click="false">
<template #activator="{ props }">
<v-btn
icon
Expand Down Expand Up @@ -46,8 +46,6 @@ export default {
name: "AvatarStack",
props: {
modelValue: Array,
default: () => [],
required: true,
},
emits: ["update:modelValue"],
Expand Down
1 change: 0 additions & 1 deletion src/dispatch/static/dispatch/src/components/LockButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { ref, watch, computed } from "vue"
import { useStore } from "vuex"
import FancyTooltip from "@/components/FancyTooltip.vue"
import CaseApi from "@/case/api"
import { E } from "../../dist/assets/index.e9481c97"

const props = defineProps({
caseVisibility: {
Expand Down

0 comments on commit e30b9f3

Please sign in to comment.