File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
src/frontend/wwwroot/task Expand file tree Collapse file tree 2 files changed +15
-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 = "#efefef" ;
232+ taskMessageTextareaElement . style . cursor = 'not-allowed' ;
229233 } else {
230234 taskMessageTextareaElement . removeAttribute ( 'disabled' )
235+ taskMessageTextareaElement . style . backgroundColor = "white"
236+ taskMessageTextareaElement . style . cursor = '' ;
231237 }
232238 if ( isHumanClarificationRequestNull && taskMessageAddButton ) {
233239 taskMessageAddButton . setAttribute ( 'disabled' , true )
236242 taskMessageAddButton . removeAttribute ( 'disabled' )
237243 taskMessageAddButton . style . cursor = 'pointer' ;
238244 }
245+
246+ if ( isHumanClarificationRequestNull && textInputContainer [ 0 ] ) {
247+ textInputContainer [ 0 ] . style . backgroundColor = '#efefef' ;
248+ textInputContainer [ 0 ] . style . cursor = 'not-allowed' ;
249+ } else {
250+ textInputContainer [ 0 ] . style . backgroundColor = 'white' ;
251+ textInputContainer [ 0 ] . style . cursor = '' ;
252+ }
253+
239254 } )
240255 . catch ( ( error ) => {
241256 console . error ( "Error:" , error ) ;
You can’t perform that action at this time.
0 commit comments