Skip to content

Commit ffd8c95

Browse files
authored
Merge pull request #674 from citation-file-format/661-info-abstract
2 parents c4b9f4a + 71f70ec commit ffd8c95

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

src/components/ScreenAbstract.vue

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
<div id="form-content">
99
<h2 class="question">
1010
Please provide a description of the work
11-
<SchemaGuideLink anchor="#abstract" />
11+
<q-icon
12+
name="ion-information-circle-outline"
13+
size="24px"
14+
color="primary"
15+
v-on:click="showAbstractHelp = true"
16+
style="cursor:pointer;"
17+
/>
1218
</h2>
1319
<q-input
1420
autogrow
@@ -21,24 +27,37 @@
2127
v-bind:model-value="abstract"
2228
v-on:update:modelValue="setAbstract"
2329
/>
30+
<InfoDialog
31+
v-model="showAbstractHelp"
32+
v-bind:data="helpData.abstract"
33+
/>
2434
</div>
2535
</template>
2636

2737
<script lang="ts">
28-
import SchemaGuideLink from 'components/SchemaGuideLink.vue'
29-
import { defineComponent } from 'vue'
38+
import { defineComponent, ref } from 'vue'
39+
import InfoDialog from 'components/InfoDialog.vue'
3040
import { useCff } from 'src/store/cff'
3141
3242
export default defineComponent({
3343
name: 'ScreenAbstract',
3444
components: {
35-
SchemaGuideLink
45+
InfoDialog
3646
},
3747
setup () {
3848
const { abstract, setAbstract } = useCff()
49+
const helpData = {
50+
abstract: {
51+
title: 'abstract',
52+
url: 'https://github.com/citation-file-format/citation-file-format/blob/1.2.0/schema-guide.md#abstract',
53+
description: 'A description or summary of the work.'
54+
}
55+
}
3956
return {
4057
abstract,
41-
setAbstract
58+
helpData,
59+
setAbstract,
60+
showAbstractHelp: ref(false)
4261
}
4362
}
4463
})

0 commit comments

Comments
 (0)