|
@@ -110,8 +110,12 @@ class Thread extends React.Component {
|
110
|
110
|
|
111
|
111
|
handleFetchResult(await fetchResultSaveThread)
|
112
|
112
|
.then(resSave => {
|
113
|
|
- if (resSave.apiResponse.status === 200) this.loadContent()
|
114
|
|
- else console.warn('Error saving threads. Result:', resSave, 'content:', content, 'config:', config)
|
|
113
|
+ if (resSave.apiResponse.status === 200) {
|
|
114
|
+ this.loadContent()
|
|
115
|
+ GLOBAL_dispatchEvent({ type: 'refreshContentList', data: {} })
|
|
116
|
+ } else {
|
|
117
|
+ console.warn('Error saving threads. Result:', resSave, 'content:', content, 'config:', config)
|
|
118
|
+ }
|
115
|
119
|
})
|
116
|
120
|
}
|
117
|
121
|
|
|
@@ -164,16 +168,24 @@ class Thread extends React.Component {
|
164
|
168
|
if (!isVisible) return null
|
165
|
169
|
|
166
|
170
|
return (
|
167
|
|
- <PopinFixed customClass={`wsContentThread`}>
|
|
171
|
+ <PopinFixed
|
|
172
|
+ customClass={config.slug}
|
|
173
|
+ customColor={config.hexcolor}
|
|
174
|
+ >
|
168
|
175
|
<PopinFixedHeader
|
169
|
|
- customClass={`wsContentThread`}
|
|
176
|
+ customClass={`${config.slug}__contentpage`}
|
|
177
|
+ customColor={config.hexcolor}
|
170
|
178
|
faIcon={config.faIcon}
|
171
|
179
|
title={content.label}
|
172
|
180
|
onClickCloseBtn={this.handleClickBtnCloseApp}
|
173
|
181
|
onValidateChangeTitle={this.handleSaveEditTitle}
|
174
|
182
|
/>
|
175
|
183
|
|
176
|
|
- <PopinFixedOption customClass={`wsContentThread`} i18n={i18n}>
|
|
184
|
+ <PopinFixedOption
|
|
185
|
+ customClass={`${config.slug}__contentpage`}
|
|
186
|
+ customColor={config.hexcolor}
|
|
187
|
+ i18n={i18n}
|
|
188
|
+ >
|
177
|
189
|
<div className='justify-content-end'>
|
178
|
190
|
<SelectStatus
|
179
|
191
|
selectedStatus={config.availableStatuses.find(s => s.slug === content.status)}
|
|
@@ -183,6 +195,7 @@ class Thread extends React.Component {
|
183
|
195
|
/>
|
184
|
196
|
|
185
|
197
|
<ArchiveDeleteContent
|
|
198
|
+ customColor={config.hexcolor}
|
186
|
199
|
onClickArchiveBtn={this.handleClickArchive}
|
187
|
200
|
onClickDeleteBtn={this.handleClickDelete}
|
188
|
201
|
disabled={false}
|
|
@@ -190,9 +203,12 @@ class Thread extends React.Component {
|
190
|
203
|
</div>
|
191
|
204
|
</PopinFixedOption>
|
192
|
205
|
|
193
|
|
- <PopinFixedContent customClass={`${config.customClass}__contentpage`}>
|
|
206
|
+ <PopinFixedContent
|
|
207
|
+ customClass={`${config.slug}__contentpage`}
|
|
208
|
+ >
|
194
|
209
|
<Timeline
|
195
|
210
|
customClass={`${config.slug}__contentpage`}
|
|
211
|
+ customColor={config.hexcolor}
|
196
|
212
|
loggedUser={loggedUser}
|
197
|
213
|
timelineData={listMessage}
|
198
|
214
|
newComment={newComment}
|