You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
<template>
|
|
<div class="mt-2 w-full text-left">
|
|
<input
|
|
v-if="!showGiveNumbers"
|
|
type="checkbox"
|
|
:checked="allContactsSelected"
|
|
class="align-middle ml-2 h-6 w-6"
|
|
data-testId="contactCheckAllBottom"
|
|
@click="$emit('toggle-all-selection')"
|
|
/>
|
|
<button
|
|
v-if="!showGiveNumbers"
|
|
:class="copyButtonClass"
|
|
:disabled="copyButtonDisabled"
|
|
@click="$emit('copy-selected')"
|
|
>
|
|
Copy
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Vue, Prop } from "vue-facing-decorator";
|
|
|
|
/**
|
|
* ContactBulkActions - Contact bulk actions component
|
|
*
|
|
* Provides bulk selection controls at the bottom of the contact list.
|
|
* Handles copy operations for selected contacts.
|
|
*
|
|
* @author Matthew Raymer
|
|
*/
|
|
@Component({
|
|
name: "ContactBulkActions",
|
|
})
|
|
export default class ContactBulkActions extends Vue {
|
|
@Prop({ required: true }) showGiveNumbers!: boolean;
|
|
@Prop({ required: true }) allContactsSelected!: boolean;
|
|
@Prop({ required: true }) copyButtonClass!: string;
|
|
@Prop({ required: true }) copyButtonDisabled!: boolean;
|
|
}
|
|
</script>
|
|
|