File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 type =" a"
99 download =" CITATION.cff"
1010 v-bind:href =" downloadUrl"
11+ v-bind:class =" $q.platform.is.mobile ? 'full-width' : ''"
1112 />
1213</template >
1314
1415<script lang="ts">
1516import { computed , defineComponent } from ' vue'
1617import { useCffstr } from ' src/store/cffstr'
18+ import { useQuasar } from ' quasar'
1719
1820const toDownloadUrl = (body : string ) => {
1921 return ` data:text/vnd.yaml,${encodeURIComponent (body )} `
@@ -23,8 +25,9 @@ export default defineComponent({
2325 name: ' DownloadButton' ,
2426 setup () {
2527 const { cffstr } = useCffstr ()
26-
28+ const $q = useQuasar ()
2729 return {
30+ $q ,
2831 downloadUrl: computed (() => toDownloadUrl (cffstr .value ))
2932 }
3033 }
Original file line number Diff line number Diff line change 3333 size =" xl"
3434 to =" /identifiers"
3535 v-on:click =" showAdvanced"
36+ v-bind:class =" $q.platform.is.mobile ? 'full-width' : ''"
3637 />
3738 </div >
3839 </div >
4849import { computed , defineComponent } from ' vue'
4950import DownloadButton from ' components/DownloadButton.vue'
5051import { useApp } from ' src/store/app'
52+ import { useQuasar } from ' quasar'
5153import { useValidation } from ' src/store/validation'
5254
5355export default defineComponent ({
@@ -58,7 +60,9 @@ export default defineComponent({
5860 setup () {
5961 const { setShowAdvanced, setStepName } = useApp ()
6062 const { errors } = useValidation ()
63+ const $q = useQuasar ()
6164 return {
65+ $q ,
6266 isValidCFF: computed (() => errors .value .length === 0 ),
6367 showAdvanced : async () => {
6468 setShowAdvanced (true )
You can’t perform that action at this time.
0 commit comments