Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion public/netbootxyz-web.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand All @@ -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,
Expand Down