Skip to content

Commit

Permalink
pkp/pkp-lib#6528 Use disabled checkbox rather than empty cell, I beli…
Browse files Browse the repository at this point in the history
…eve that will make it easier for SR to interpret
  • Loading branch information
jardakotesovec committed Dec 4, 2024
1 parent b549f58 commit 4a1f9ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/components/Table/TableCellSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
type="checkbox"
:checked="props.checked"
:aria-describedby="describedBy"
:disabled="disabled"
@change="emit('change', $event.target.checked)"
/>
</TableCell>
Expand All @@ -15,6 +16,7 @@ import TableCell from './TableCell.vue';
const props = defineProps({
checked: {type: Boolean, required: true},
describedBy: {type: String, required: true},
disabled: {type: Boolean, required: false, default: false},
});
const emit = defineEmits(['change']);
</script>
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<template>
<!--<TableCellSelect :value="isChecked" @change="toggle"></TableCellSelect>-->

<TableCellSelect
v-if="canBeDeleted"
:disabled="!canBeDeleted"
:checked="isChecked"
:described-by="'submission-title-' + item.id"
@change="change"
/>
<TableCell v-else></TableCell>
</template>

<script setup>
import {computed} from 'vue';
import TableCellSelect from '@/components/Table/TableCellSelect.vue';
import TableCell from '@/components/Table/TableCell.vue';
import {useDashboardPageStore} from '@/pages/dashboard/dashboardPageStore';
Expand Down

0 comments on commit 4a1f9ad

Please sign in to comment.