Skip to content

Commit

Permalink
Disable title and description inputs in autoshare
Browse files Browse the repository at this point in the history
  • Loading branch information
vikdoro authored and Paul Varache committed Jul 31, 2017
1 parent 57bc7be commit 254ef8b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/elements/kano-share-modal/kano-share-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,13 @@
id="title_input"
value="{{shareInfo.title::change}}"
placeholder="Title"
disabled$="[[autosharing]]"
autofocus />
<textarea rows="4"
cols="40"
value="{{shareInfo.description::change}}"
placeholder="Description"></textarea>
placeholder="Description"
disabled$="[[autosharing]]"></textarea>

<hr>

Expand Down Expand Up @@ -930,8 +932,8 @@ <h2>[[localize('SAVED', 'Saved')]]</h2>
this.popup.document.write("<p>Fetching your link...</p>")
},
_updateUI () {
const autoshare = this.shareInfo.autoshare;
this.nextHidden = typeof autoshare === 'undefined' || !autoshare || !this.inChallenge;
this.autosharing = this.shareInfo && this.shareInfo.autoshare;
this.nextHidden = !this.autosharing || !this.inChallenge;
},
_nextStory () {
this.fire('next-story');
Expand Down

0 comments on commit 254ef8b

Please sign in to comment.