Skip to content

Commit 7385ace

Browse files
authored
Merge pull request #697 from citation-file-format/696-vue-warning-download-button
Fix vue warning about using $ in returned property
2 parents af2e4c0 + f0e9d0c commit 7385ace

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/DownloadButton.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
type="a"
1010
download="CITATION.cff"
1111
v-bind:href="downloadUrl"
12-
v-bind:class="$q.platform.is.mobile ? 'full-width' : ''"
12+
v-bind:class="q.platform.is.mobile ? 'full-width' : ''"
1313
/>
1414
</template>
1515

@@ -26,9 +26,9 @@ export default defineComponent({
2626
name: 'DownloadButton',
2727
setup () {
2828
const { cffstr } = useCffstr()
29-
const $q = useQuasar()
29+
const q = useQuasar()
3030
return {
31-
$q,
31+
q,
3232
downloadUrl: computed(() => toDownloadUrl(cffstr.value))
3333
}
3434
}

src/components/ScreenFinishMinimum.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
size="xl"
3434
to="/identifiers"
3535
v-on:click="showAdvanced"
36-
v-bind:class="$q.platform.is.mobile ? 'full-width' : ''"
36+
v-bind:class="q.platform.is.mobile ? 'full-width' : ''"
3737
/>
3838
</div>
3939
</div>
@@ -60,9 +60,9 @@ export default defineComponent({
6060
setup () {
6161
const { setShowAdvanced, setStepName } = useApp()
6262
const { errors } = useValidation()
63-
const $q = useQuasar()
63+
const q = useQuasar()
6464
return {
65-
$q,
65+
q,
6666
isValidCFF: computed(() => errors.value.length === 0),
6767
showAdvanced: async () => {
6868
setShowAdvanced(true)

0 commit comments

Comments
 (0)