Browse Source

When creating official station, you can enter to add a genre or blacklisted genre

theflametrooper 8 years ago
parent
commit
876ecfe1d3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frontend/components/Admin/Stations.vue

+ 2 - 2
frontend/components/Admin/Stations.vue

@@ -57,7 +57,7 @@
 						</p>
 						<label class='label'>Genres</label>
 						<p class='control has-addons'>
-							<input class='input' id='new-genre' type='text' placeholder='Genre'>
+							<input class='input' id='new-genre' type='text' placeholder='Genre' v-on:keyup.enter='addGenre()'>
 							<a class='button is-info' href='#' @click='addGenre()'>Add genre</a>
 						</p>
 						<span class='tag is-info' v-for='(index, genre) in newStation.genres' track-by='$index'>
@@ -66,7 +66,7 @@
 						</span>
 						<label class='label'>Blacklisted Genres</label>
 						<p class='control has-addons'>
-							<input class='input' id='new-blacklisted-genre' type='text' placeholder='Blacklisted Genre'>
+							<input class='input' id='new-blacklisted-genre' type='text' placeholder='Blacklisted Genre' v-on:keyup.enter='addBlacklistedGenre()'>
 							<a class='button is-info' href='#' @click='addBlacklistedGenre()'>Add blacklisted genre</a>
 						</p>
 						<span class='tag is-info' v-for='(index, genre) in newStation.blacklistedGenres' track-by='$index'>