File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,10 @@ <h1>Sort & Filter</h1>
9494 </ div >
9595 </ div >
9696 < div class ="section ">
97- < h1 > Logs</ h1 >
98- < div id ="no-logs " class ="row ">
99- < p > No actions reported.</ p >
100- </ div >
101- < div class ="section logs enhanced-list " hidden > </ div >
102- < button id ="clear-logs "> Clear Logs</ button >
97+ < h1 > Maintenance Mode</ h1 >
98+ < label class ="checkboxGroup "> < input type ="checkbox " id ="maintenance-mode " hidden >
99+ < div class ="checkbox "> </ div > Enable Maintenance Mode
100+ </ label >
103101 </ div >
104102 < div class ="section ai-manager ">
105103 < h1 > AI Configuration</ h1 >
@@ -122,6 +120,14 @@ <h1>AI Configuration</h1>
122120 placeholder ="Enter your prompt here... " rows ="1 " disabled > </ textarea >
123121 < button id ="save-button "> Save</ button >
124122 </ div >
123+ < div class ="section ">
124+ < h1 > Logs</ h1 >
125+ < div id ="no-logs " class ="row ">
126+ < p > No actions reported.</ p >
127+ </ div >
128+ < div class ="section logs enhanced-list " hidden > </ div >
129+ < button id ="clear-logs "> Clear Logs</ button >
130+ </ div >
125131 </ div >
126132 <!-- Controls -->
127133 < div id ="controls-container " class ="pill ">
Original file line number Diff line number Diff line change @@ -1223,8 +1223,9 @@ try {
12231223 generator_enabled : document . getElementById ( 'generate-answers' ) . checked ,
12241224 checker_enabled : document . getElementById ( 'check-responses' ) . checked ,
12251225 generate_answers_prompt : document . getElementById ( 'generate-answers-prompt' ) . value ,
1226- check_responses_prompt : document . getElementById ( 'check-responses-prompt' ) . value
1227- }
1226+ check_responses_prompt : document . getElementById ( 'check-responses-prompt' ) . value ,
1227+ maintenance_enabled : document . getElementById ( 'maintenance-mode' ) . checked
1228+ } ,
12281229 } ;
12291230 }
12301231 for ( const key in updatedInfo ) {
@@ -6200,6 +6201,7 @@ try {
62006201 document . getElementById ( 'check-responses-prompt' ) . value = aiInfo . check_responses_prompt ;
62016202 document . getElementById ( 'check-responses-prompt-ending' ) . placeholder = aiInfo . check_responses_prompt_ending ;
62026203 document . getElementById ( 'check-responses-prompt-ending' ) . value = aiInfo . check_responses_prompt_ending ;
6204+ document . getElementById ( 'maintenance-mode' ) . checked = Number ( settings [ 'maintenance-mode' ] || 0 ) ;
62036205 }
62046206
62056207 async function clearAnnouncement ( platform ) {
You can’t perform that action at this time.
0 commit comments