Skip to content

Commit

Permalink
fix(app): fix add new app bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
booboosui committed Sep 1, 2023
1 parent 095d0d9 commit a3058c2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $(document).ready(function () {
});

$("#add-application").click(function () {
cleanUp()
$('#app-edit').modal('show');
});

Expand Down Expand Up @@ -146,9 +147,18 @@ function removeSubservice(idx){
$("#subservice_"+idx).remove()
}

function cleanUp() {
$('.subservice').remove();
$("#app_id").val('')
$("#app_default_source_branch").val('')
$("#app_default_target_branch").val('')
$("#app_description").val('')
$("#app_name").val('')
}

function showApp(appID) {
$('#app-edit').modal('show');
$('.subservice').remove();
cleanUp()

var requestData = { 'app_id': appID }

Expand Down

0 comments on commit a3058c2

Please sign in to comment.