Skip to content
Snippets Groups Projects
Commit 8e3fe3a5 authored by fibasile's avatar fibasile
Browse files

Check if documentation is present, and open the URL in a separate window

parent 855592b9
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@
<q-list>
<q-item
v-if="project.website"
clickable
@click="()=>this.$emit('action', 'showDocumentation')"
>
......
......@@ -62,6 +62,7 @@
</template>
<script>
import { openURL } from 'quasar'
import { mapActions, mapGetters } from 'vuex';
import ProjectDescriptionCard from 'components/project/ProjectDescriptionCard';
import ProjectPhotosCard from 'components/project/ProjectPhotosCard';
......@@ -106,6 +107,8 @@ export default {
}
},
methods: {
openURL,
...mapActions({
loadProject: 'project_detail/loadProject',
addComment: 'project_detail/addComment',
......@@ -134,6 +137,7 @@ export default {
handleShowDocumentation () {
// this.showDocumentationDialog = true;
// this.openURL
if (this.project.website) { this.openURL(this.project.website) }
},
handleShowDownloads () {
this.showSelectCollectionDialog = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment