Textarea instead of input

This commit is contained in:
Mr. Stallion 2019-06-02 19:42:05 -05:00
parent db696b4c9b
commit cf91fe1627
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
</div> </div>
<div class="form-group" v-for="(ad, index) in ads"> <div class="form-group" v-for="(ad, index) in ads">
<label :for="'ad' + conversation.key + '-' + index" class="control-label">Channel Auto-Posting Ad #{{(index + 1)}}</label> <label :for="'ad' + conversation.key + '-' + index" class="control-label">Channel Auto-Posting Ad #{{(index + 1)}}</label>
<input :id="'ad' + conversation.key + '-' + index" class="form-control" v-model="ads[index]" /> <textarea :id="'ad' + conversation.key + '-' + index" class="form-control" v-model="ads[index]"></textarea>
</div> </div>
<button class="btn" @click="addAd()">Add Auto-Posting Ad</button> <button class="btn" @click="addAd()">Add Auto-Posting Ad</button>
@ -88,7 +88,7 @@
joinMessages: this.joinMessages, joinMessages: this.joinMessages,
defaultHighlights: this.defaultHighlights, defaultHighlights: this.defaultHighlights,
adSettings: { adSettings: {
ads: this.ads.filter((ad: string) => (ad.length > 0)) ads: this.ads.map((ad: string) => ad.trim()).filter((ad: string) => (ad.length > 0))
} }
}; };
} }