Skip to content

Commit

Permalink
Feat: Add chapter view to new audio publication #97
Browse files Browse the repository at this point in the history
  • Loading branch information
Letty committed Dec 23, 2019
1 parent b94ae61 commit 920ae63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/network/_nid/new-audio-publication/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
:contributor="activeContributor"
@contributorUpdated="contributor => handleUpdateContributor(contributor)"
></EditContributorModal>
<EpisodeChapters
v-if="activeAudio"
:editable="activeAudioChapters.length === 0"
></EpisodeChapters>
</section>
</template>

Expand Down Expand Up @@ -145,12 +149,14 @@ import { ToastProgrammatic as Toast } from 'buefy'
import Upload from '~/components/Upload'
import ContributionsField from '~/components/ContributionsField'
import EditContributorModal from '~/components/EditContributorModal'
import EpisodeChapters from '~/components/EpisodeChapters'
import NewContributorModal from '~/components/NewContributorModal'
export default {
components: {
ContributionsField,
EditContributorModal,
EpisodeChapters,
NewContributorModal,
Upload
},
Expand All @@ -174,6 +180,7 @@ export default {
activeNetwork: state => state.networks.activeNetwork,
activeAudio: state => state.audio.activeAudio,
contributionRoles: state => state.contributions.contributionRoles,
activeAudioChapters: state => state.audio.activeAudioChapters,
networks: state => state.networks.networks
}),
methods: {
Expand Down

0 comments on commit 920ae63

Please sign in to comment.