forked from platypush/platypush
[UI] Render docs link on ExtensionIcon
only on docs panel.
This commit is contained in:
parent
8079b08a54
commit
5ab66e6746
2 changed files with 8 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="extension-icon" :style="{ width: `${size}`, height: `${size}` }">
|
<div class="extension-icon" :style="{ width: `${size}`, height: `${size}` }">
|
||||||
<a :href="docsUrl" target="_blank">
|
<a :href="docsUrl" target="_blank" v-if="withDocsLink">
|
||||||
<img :src="iconUrl" :alt="extensionName" :title="extensionName" />
|
<img :src="iconUrl" :alt="extensionName" :title="extensionName" />
|
||||||
</a>
|
</a>
|
||||||
|
<img :src="iconUrl" :alt="extensionName" :title="extensionName" v-else />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -18,6 +19,11 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: '1.75em',
|
default: '1.75em',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
withDocsLink: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<header>
|
<header>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="title" :href="extension.doc_url" target="_blank">
|
<a class="title" :href="extension.doc_url" target="_blank">
|
||||||
<ExtensionIcon :name="extension.name" size="2em" />
|
<ExtensionIcon :name="extension.name" size="2em" with-docs-link />
|
||||||
<span class="name" v-text="extension.name" />
|
<span class="name" v-text="extension.name" />
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
Loading…
Reference in a new issue