- Renamed "Collections" to "Classify" in dataset category views for submitters and editors to better reflect the page's purpose. - Modified the `SectionTitleLineWithButton` component to conditionally render the cog button based on the `showCogButton` prop. - Updated the Dataset Edit and Create views to use `textarea` instead of `text` for title and description input fields, allowing for multi-line text. - Added authorization checks for dataset review and reject actions in the `Reviewer/DatasetController`, and passed the `can` object to the `Review` view. - Added a "Reject" button to the dataset review page, visible only to users with the `dataset-review-reject` permission and when the dataset is in the 'approved' state. - Improved the display of dataset information in index views by adding dark mode styling to table headers. - Removed unused code and comments from the Dashboard.vue file. - Removed the `show-header-icon` property from the CardBox component in the Create.vue file. - Updated dependencies
39 lines
1.1 KiB
Vue
39 lines
1.1 KiB
Vue
<script setup>
|
|
import { mdiCog } from '@mdi/js';
|
|
import { useSlots, computed } from 'vue';
|
|
import BaseIcon from '@/Components/BaseIcon.vue';
|
|
import BaseButton from '@/Components/BaseButton.vue';
|
|
import IconRounded from '@/Components/IconRounded.vue';
|
|
|
|
defineProps({
|
|
icon: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
title: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
main: Boolean,
|
|
showCogButton: {
|
|
type: Boolean,
|
|
default: false,
|
|
}
|
|
});
|
|
|
|
const hasSlot = computed(() => useSlots().default);
|
|
</script>
|
|
|
|
<template>
|
|
<section :class="{ 'pt-6': !main }" class="mb-6 flex items-center justify-between">
|
|
<div class="flex items-center justify-start">
|
|
<IconRounded v-if="icon && main" :icon="icon" type="light" class="mr-3" bg />
|
|
<BaseIcon v-else-if="icon" :path="icon" class="mr-2" size="20" />
|
|
<h1 :class="main ? 'text-3xl' : 'text-2xl'" class="leading-tight">
|
|
{{ title }}
|
|
</h1>
|
|
</div>
|
|
<slot v-if="hasSlot" />
|
|
<BaseButton v-else-if="showCogButton" :icon="mdiCog" small />
|
|
</section>
|
|
</template>
|