Skip to content
Snippets Groups Projects

Draft: add version column

Merged Hugo Trentesaux requested to merge hugo-version into master
3 files
+ 11
2
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 8
1
@@ -162,8 +162,15 @@ class BMAEndpoint{
this.row = document.createElement('tr')
fields.forEach(field => {
let cell = document.createElement('td')
cell.innerText = (this[field] == undefined) ? '' : this[field]
cell.innerText = (this[field] == undefined) ? 'ø' : this[field]
this.row.appendChild(cell)
});
}
get_version = async function() {
return fetch(this.url_protocol + this.url_root)
.then(response => response.json())
.then(data => this.version = data.duniter.version)
.catch(error => { this.version = "ø" })
}
}
\ No newline at end of file
Loading