Skip to content

Commit

Permalink
Merge pull request #560 from c2corg/association-editor-modif-outing
Browse files Browse the repository at this point in the history
Association editor - Modification of outing's link
  • Loading branch information
flob38 authored Apr 16, 2019
2 parents fc8af82 + b50392c commit 6b5520a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

<pretty-book-link v-else-if="childType==='book'" :book="child.document" />

<association-outing-link v-else-if="childType==='outing'" :outing="child.document" />

<pretty-route-link
v-else-if="childType==='route'"
:route="child.document"
Expand Down Expand Up @@ -55,8 +57,11 @@

<script>
import c2c from '@/js/apis/c2c';
import AssociationOutingLink from './AssociationOutingLink';
export default {
components: { AssociationOutingLink },
props: {
parent: {
Expand Down
27 changes: 27 additions & 0 deletions src/components/association-editor/AssociationOutingLink.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<document-link :document="outing" class="pretty-outing-link has-hover-background">
<span class="has-text-normal">
{{ outing.date_start }}&hairsp;&bull;&hairsp;{{ outing.author.name }} -
</span>
<document-title :document="outing" />
</document-link>
</template>

<script>
export default {
props: {
outing: {
type: Object,
required: true
}
}
};
</script>

<style scoped lang="scss">
.pretty-outing-link{
display:block
}
</style>
2 changes: 1 addition & 1 deletion src/views/document/utils/boxes/ToolBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
import LicenseBox from './LicenseBox';
import AssociatedDocuments from './AssociatedDocuments';
import AssociationsWindow from '../windows/AssociationsWindow';
import AssociationsWindow from '@/components/association-editor/AssociationsWindow';
import DeleteDocumentWindow from '../windows/DeleteDocumentWindow';
import DeleteLocaleWindow from '../windows/DeleteLocaleWindow';
import MergeDocumentWindow from '../windows/MergeDocumentWindow';
Expand Down

0 comments on commit 6b5520a

Please sign in to comment.