Skip to content

Commit

Permalink
Pass baseUrl to props
Browse files Browse the repository at this point in the history
  • Loading branch information
karimi committed Oct 8, 2024
1 parent f7e5e40 commit 7ea5a2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions quasar_site/src/components/MemberSignature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export default {
type: String,
required: true,
},
baseUrl: {
type: String
},
},
data() {
const mostRecent = ViewModel.mostRecentSince();
Expand Down Expand Up @@ -263,6 +266,7 @@ export default {
link = `https://learn.microsoft.com/en-us/dotnet/api/${cleanType}`
}
}
console.log("returning link", this.baseUrl)
return link;
},
},
Expand Down
2 changes: 1 addition & 1 deletion quasar_site/src/pages/DataType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</p>

<q-list v-if="dataType == 'delegate'" label="Delegate stuff" switch-toggle-side default-opened header-class="bg-secondary text-white">
<MemberSignature :member="node" :datatype="node"/>
<MemberSignature :member="node" :datatype="node" :base-url="baseUrl"/>
<template v-if="false">
<q-item>
<q-item-section>
Expand Down
2 changes: 1 addition & 1 deletion quasar_site/src/pages/MemberDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div style="height: 130px" v-if="!forScriptEditor"></div>
<q-list>
<div v-for="(member, index) in members.items" :key="index" :id="ViewModel.signatureAnchorRef(member.signature)" style="transition: opacity 1s" :style="activeId && activeId != ViewModel.signatureAnchorRef(member.signature) ? 'opacity: 50%' : 'opacity: 100%'" >
<MemberSignature :member="member" :datatype="datatype"/>
<MemberSignature :member="member" :datatype="datatype" :base-url="baseUrl"/>
<q-separator />
</div>
</q-list>
Expand Down

0 comments on commit 7ea5a2b

Please sign in to comment.