File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/frontend/wwwroot/task Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,6 @@ textarea {
241241 justify-content : space-between;
242242 align-items : left;
243243 padding : 0px 5px ;
244- background-color : white;
245244}
246245
247246.bottom-bar {
@@ -251,7 +250,6 @@ textarea {
251250 padding : 3px 10px ;
252251 border-top : none;
253252 border-bottom : 4px solid # 0f6cbd ;
254- background-color : white;
255253}
256254
257255.send-button {
Original file line number Diff line number Diff line change 224224 const isHumanClarificationRequestNull = data ?. [ 0 ] ?. human_clarification_request === null
225225 const taskMessageTextareaElement = document . getElementById ( "taskMessageTextarea" ) ;
226226 const taskMessageAddButton = document . getElementById ( "taskMessageAddButton" ) ;
227+ const textInputContainer = document . getElementsByClassName ( "text-input-container" ) ;
228+
227229 if ( isHumanClarificationRequestNull && taskMessageTextareaElement ) {
228230 taskMessageTextareaElement . setAttribute ( 'disabled' , true )
231+ taskMessageTextareaElement . style . backgroundColor = "lightgray"
229232 } else {
230233 taskMessageTextareaElement . removeAttribute ( 'disabled' )
234+ taskMessageTextareaElement . style . backgroundColor = "white"
231235 }
232236 if ( isHumanClarificationRequestNull && taskMessageAddButton ) {
233237 taskMessageAddButton . setAttribute ( 'disabled' , true )
236240 taskMessageAddButton . removeAttribute ( 'disabled' )
237241 taskMessageAddButton . style . cursor = 'pointer' ;
238242 }
243+
244+ if ( isHumanClarificationRequestNull && textInputContainer [ 0 ] ) {
245+ textInputContainer [ 0 ] . style . backgroundColor = 'lightgray' ;
246+ } else {
247+ textInputContainer [ 0 ] . style . backgroundColor = 'white' ;
248+ }
249+
239250 } )
240251 . catch ( ( error ) => {
241252 console . error ( "Error:" , error ) ;
You can’t perform that action at this time.
0 commit comments