Skip to content

Commit e84c37b

Browse files
committed
show modal for commands execution
1 parent 475f713 commit e84c37b

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

css/style.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,9 @@ textarea {
171171
background: rgb(189, 189, 189); /* Fall-back for browsers that don't support rgba */
172172
background: rgba(189, 189, 189, 0.5);
173173
}
174-
175174
.modal-kathara .modal-content{
176175
border-radius: 0!important;
177176
}
178-
179177
.modal-kathara .modal-footer{
180178
border: 0!important;
181179
padding-top: 0px;

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ <h4>Bash file preview:</h4>
317317
</nav>
318318

319319
<!-- Lstart Modal -->
320-
<div id="lstartModal" class="modal modal-kathara ng-hide">
320+
<div id="command-modal" class="modal modal-kathara ng-hide">
321321
<div class="modal-dialog">
322322
<!-- Modal content-->
323323
<div class="modal-content">
324324
<div class="modal-header">
325325
<button type="button" class="close" onclick="close_modal(event)">&times;</button>
326-
<h4 class="modal-title">Running Lstart</h4>
326+
<h4 class="modal-title">Running Commands</h4>
327327
</div>
328328
<div class="modal-body">
329329
<p>The command has been issued, please wait for its execution.</p>
@@ -419,6 +419,7 @@ <h4 class="modal-title">Running Lstart</h4>
419419
}
420420
function executeClean(e){
421421
e.preventDefault();
422+
show_modal();
422423
const {ipcRenderer} = electron;
423424
ipcRenderer.send('script:clean');
424425
}

js/page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ function toggle_tab_and_submenu(event, elem, total_submenus) {
5252

5353
function close_modal(e){
5454
e.preventDefault();
55-
var modal = document.getElementById("lstartModal");
55+
var modal = document.getElementById("command-modal");
5656
modal.classList.add("ng-hide");
5757
}
5858

5959
function show_modal(){
60-
var modal = document.getElementById("lstartModal");
60+
var modal = document.getElementById("command-modal");
6161
modal.classList.remove("ng-hide");
6262
}

0 commit comments

Comments
 (0)