Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions src/components/ScreenAbstract.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
<div id="form-content">
<h2 class="question">
Please provide a description of the work
<SchemaGuideLink anchor="#abstract" />
<q-icon
name="ion-information-circle-outline"
size="24px"
color="primary"
v-on:click="showAbstractHelp = true"
style="cursor:pointer;"
/>
</h2>
<q-input
autogrow
Expand All @@ -21,24 +27,37 @@
v-bind:model-value="abstract"
v-on:update:modelValue="setAbstract"
/>
<InfoDialog
v-model="showAbstractHelp"
v-bind:data="helpData.abstract"
/>
</div>
</template>

<script lang="ts">
import SchemaGuideLink from 'components/SchemaGuideLink.vue'
import { defineComponent } from 'vue'
import { defineComponent, ref } from 'vue'
import InfoDialog from 'components/InfoDialog.vue'
import { useCff } from 'src/store/cff'

export default defineComponent({
name: 'ScreenAbstract',
components: {
SchemaGuideLink
InfoDialog
},
setup () {
const { abstract, setAbstract } = useCff()
const helpData = {
abstract: {
title: 'abstract',
url: 'https://github.com/citation-file-format/citation-file-format/blob/1.2.0/schema-guide.md#abstract',
description: 'A description or summary of the work.'
}
}
return {
abstract,
setAbstract
helpData,
setAbstract,
showAbstractHelp: ref(false)
}
}
})
Expand Down