fix all conflicts

front
TBS093A 2020-07-09 17:13:21 +02:00
parent d95de20cfd
commit 1a72f9f705
1 changed files with 0 additions and 20 deletions

View File

@ -17,16 +17,6 @@ const ForumSubjectUpdate = ({
const updateSubjectTitle = React.createRef() const updateSubjectTitle = React.createRef()
const updateSubjectAuthor = React.createRef() const updateSubjectAuthor = React.createRef()
<<<<<<< HEAD
const updateOldSubject = (event) => {
event.preventDefault()
if ( updateSubjectTitle.current.value !== '') {
let putSubject = {
id: subject.id,
name: updateSubjectTitle.current.value,
user_id: user.id,
thread_id: threads.actualThreadID,
=======
const [selectAuthorID, setSelectAuthorID] = useState(-1) const [selectAuthorID, setSelectAuthorID] = useState(-1)
const [selectThreadID, setSelectThreadID] = useState(-1) const [selectThreadID, setSelectThreadID] = useState(-1)
@ -48,7 +38,6 @@ const ForumSubjectUpdate = ({
name: updateSubjectTitle.current.value, name: updateSubjectTitle.current.value,
user_id: selectAuthorID === -1 ? subject.user_id : selectAuthorID, user_id: selectAuthorID === -1 ? subject.user_id : selectAuthorID,
thread_id: selectThreadID === -1 ? subject.thread_id : selectThreadID, thread_id: selectThreadID === -1 ? subject.thread_id : selectThreadID,
>>>>>>> front
token: user.token token: user.token
} }
updateSubject(putSubject) updateSubject(putSubject)
@ -75,13 +64,8 @@ const ForumSubjectUpdate = ({
<div> <div>
<select <select
name='updateSubjectAuthorText' name='updateSubjectAuthorText'
<<<<<<< HEAD
value={ user.allUsersList }
ref={ updateSubjectAuthor }>
=======
onChange={ e => setSelectAuthorID( e.target.value ) }> onChange={ e => setSelectAuthorID( e.target.value ) }>
<option value={ subject.user_id }>Choice Author ( actual: { subject.author } )</option> <option value={ subject.user_id }>Choice Author ( actual: { subject.author } )</option>
>>>>>>> front
{ user.allUsersList.map( userObject => { user.allUsersList.map( userObject =>
<option value={userObject.id}>{userObject.login}, Privilige: { userObject.privilige >= 2 ? 'Moderator' : 'Normal User' }</option> <option value={userObject.id}>{userObject.login}, Privilige: { userObject.privilige >= 2 ? 'Moderator' : 'Normal User' }</option>
) )
@ -89,12 +73,8 @@ const ForumSubjectUpdate = ({
</select> </select>
<select <select
name='updateSubjectAuthorText' name='updateSubjectAuthorText'
<<<<<<< HEAD
value={ threads.threadsList }>
=======
onChange={ e => setSelectThreadID( e.target.value ) }> onChange={ e => setSelectThreadID( e.target.value ) }>
<option value={ threads.actualThreadID }>Choice Thread ( actual: { threads.actualThreadName } )</option> <option value={ threads.actualThreadID }>Choice Thread ( actual: { threads.actualThreadName } )</option>
>>>>>>> front
{ threads.threadsList.map( threadObject => { threads.threadsList.map( threadObject =>
<option value={threadObject.id}>{threadObject.name}, moderator: {threadObject.moderator}</option> <option value={threadObject.id}>{threadObject.name}, moderator: {threadObject.moderator}</option>
) )