Add resource URL link to home panel component
<img :src="`${contextPath}/img/asksupport.gif`" />
<a :href="askQuestionUrl" target="_blank" v-text="i18n('home.button.ask')"></a>
</div>
- <div v-if="seeMoreQuestionUrl" :colspan="(askQuestionUrl || entries.length === 0) ? 1 : 2" class="ml-auto more">
- <a :href="seeMoreQuestionUrl" target="_blank">
+ <div v-if="seeMoreUrl" :colspan="(askQuestionUrl || entries.length === 0) ? 1 : 2" class="ml-auto more">
+ <a :href="seeMoreUrl" target="_blank">
<i class="fa fa-share"></i>
<span v-text="i18n('home.button.more')"></span>
</a>
default: 8,
},
seeMoreQuestionUrl: String,
+ seeMoreResourcesUrl: String,
askQuestionUrl: String,
introJsDataIntro: String,
introJsDataStep: Number,
},
})
- export default class HomePanel extends Base {}
+ export default class HomePanel extends Base {
+ get seeMoreUrl() {
+ return this.seeMoreQuestionUrl || this.seeMoreResourcesUrl;
+ }
+ }
</script>
<style lang="less" scoped>
