Client feature #14

Merged
KevinMidboe merged 13 commits from client_feature into master 2017-07-16 09:19:15 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 27edd29bd2 - Show all commits

View File

@@ -16,7 +16,9 @@ class MovieObject {
}
requestMovie(id) {
console.log(id);
fetch('http://localhost:31459/api/v1/plex/request/' + id, {
method: 'POST'
})
}
getElement() {

View File

@@ -58,7 +58,7 @@ class SearchRequest extends React.Component {
<input
type="text"
onKeyPress={(event) => this._handleKeyPress(event)}
onChange={event => this.handleChange(event)}
onChange={(event) => this.handleChange(event)}
value={this.state.searchQuery}
/>
<button onClick={() => this.fetchQuery()}>Search</button>