Skip to content

Commit

Permalink
Only show copy button in tag picker if prop is set (#4358)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored and metroid-samus committed Feb 9, 2024
1 parent a031671 commit 9086c95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dispatch/static/dispatch/src/case/DetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
model="case"
:model-id="id"
:project="project"
show-copy
/>
</v-col>
<v-col cols="12">
Expand Down
1 change: 1 addition & 0 deletions src/dispatch/static/dispatch/src/incident/DetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
:project="project"
model="incident"
:model-id="id"
show-copy
/>
</v-col>
<v-col cols="12">
Expand Down
1 change: 1 addition & 0 deletions src/dispatch/static/dispatch/src/signal/NewEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
model="signal"
:model-id="id"
:project="project"
show-copy
/>
</v-col>
</v-row>
Expand Down
6 changes: 5 additions & 1 deletion src/dispatch/static/dispatch/src/tag/TagPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ menu ? "mdi-minus" : "mdi-plus" }}
</v-icon>
</template>
<template #append>
<template #append v-if="showCopy">
<v-icon class="panel-button" @click.stop="copyTags">mdi-content-copy</v-icon>
</template>
<div class="form-container mt-2">
Expand Down Expand Up @@ -172,6 +172,10 @@ const props = defineProps({
type: Number,
default: null,
},
showCopy: {
type: Boolean,
default: false,
},
})
watch(
Expand Down

0 comments on commit 9086c95

Please sign in to comment.