diff --git a/README.md b/README.md index 6a1ea83..8c159e9 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ A modern web interface for editing iPXE boot menus and managing local asset mirr ### Building with Docker ```bash -git clone https://github.com/netbootxyz/webapp +git clone https://github.com/Adambis1/webapp cd webapp git clone https://github.com/netbootxyz/docker-netbootxyz docker build . -t netbootxyz-webapp diff --git a/public/netbootxyz-web.ejs b/public/netbootxyz-web.ejs index e056916..c0eb4e8 100644 --- a/public/netbootxyz-web.ejs +++ b/public/netbootxyz-web.ejs @@ -444,6 +444,7 @@ socket.on('renderlocal', function(endpoints,localfiles,remotemenuversion){ var remotetable = $('#remoteassets').DataTable(tableoptions); localtable.clear(); remotetable.clear(); + disabled_folders = []; $.each(endpoints.endpoints, function(index,value){ $.each(value.files, function( arrindex, file ) { if (localfiles.includes(value.path + file)){ @@ -470,8 +471,9 @@ socket.on('renderlocal', function(endpoints,localfiles,remotemenuversion){ }); if (localfiles.length != 0){ var untrackedtable = $('#untrackedassets').DataTable(tableoptions); + (localfiles.filter(str => str.includes("disable-tracking-netbootxyz"))).forEach(element => {disabled_folders.push((element.substring(0,element.lastIndexOf("/")+1)))}); $.each(localfiles, function( arrindex, file ) { - if (!file.endsWith('.part2')) { + if (!file.endsWith('.part2') && disabled_folders.filter(str => str.includes(file.substring(0,str.length))).length==0 ) { untrackedtable.row.add( [ '/assets' + file,