Skip to content

Commit

Permalink
Refactor: rename podcast settings to details and remove disabled from…
Browse files Browse the repository at this point in the history
… input #125
  • Loading branch information
Letty committed Sep 27, 2019
1 parent 2fb1d34 commit 3c006d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
23 changes: 9 additions & 14 deletions components/PodcastSettings.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<section>
<b-field label="Title">
<b-input v-if="isDisabled" v-model="podcast.title" disabled></b-input>
<b-input v-if="isDisabled" v-model="podcast.title"></b-input>
<b-input
v-if="!isDisabled"
v-model="title"
Expand All @@ -10,7 +10,7 @@
></b-input>
</b-field>
<b-field label="Subtitle">
<b-input v-if="isDisabled" v-model="podcast.subtitle" disabled></b-input>
<b-input v-if="isDisabled" v-model="podcast.subtitle"></b-input>
<b-input
v-if="!isDisabled"
v-model="subtitle"
Expand All @@ -22,7 +22,6 @@
<b-input
v-if="isDisabled"
v-model="podcast.summary"
disabled
type="textarea"
></b-input>
<b-input
Expand All @@ -34,10 +33,10 @@
></b-input>
</b-field>
<b-field label="Slug">
<b-input v-model="podcast.slug" disabled></b-input>
<b-input v-model="podcast.slug"></b-input>
</b-field>
<b-field label="Short Id">
<b-input v-if="isDisabled" v-model="podcast.shortId" disabled></b-input>
<b-input v-if="isDisabled" v-model="podcast.shortId"></b-input>
<b-input
v-if="!isDisabled"
v-model="shortId"
Expand All @@ -46,7 +45,7 @@
></b-input>
</b-field>
<b-field label="Author">
<b-input v-if="isDisabled" v-model="podcast.author" disabled></b-input>
<b-input v-if="isDisabled" v-model="podcast.author"></b-input>
<b-input
v-if="!isDisabled"
v-model="author"
Expand All @@ -55,7 +54,7 @@
></b-input>
</b-field>
<b-field label="Owner">
<b-input v-if="isDisabled" v-model="podcast.ownerName" disabled></b-input>
<b-input v-if="isDisabled" v-model="podcast.ownerName"></b-input>
<b-input
v-if="!isDisabled"
v-model="ownerName"
Expand All @@ -64,11 +63,7 @@
></b-input>
</b-field>
<b-field label="Owner Email">
<b-input
v-if="isDisabled"
v-model="podcast.ownerEmail"
disabled
></b-input>
<b-input v-if="isDisabled" v-model="podcast.ownerEmail"></b-input>
<b-input
v-if="!isDisabled"
v-model="ownerEmail"
Expand All @@ -77,7 +72,7 @@
></b-input>
</b-field>
<b-field label="Language">
<b-input v-if="isDisabled" v-model="podcast.language" disabled></b-input>
<b-input v-if="isDisabled" v-model="podcast.language"></b-input>
<b-input
v-if="!isDisabled"
v-model="language"
Expand Down Expand Up @@ -109,7 +104,7 @@
outlined
@click.stop.prevent="$emit('edit')"
>
Edit Settings
Edit Details
</b-button>
<b-button
v-if="!isDisabled"
Expand Down
2 changes: 1 addition & 1 deletion pages/network/_nid/podcast/_pid/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</article>
</div>
</b-tab-item>
<b-tab-item label="Info">
<b-tab-item label="Details">
<podcast-settings
:is-disabled="isDisabled"
:is-loading="isLoading"
Expand Down

0 comments on commit 3c006d0

Please sign in to comment.