Skip to content

Commit

Permalink
Update locales
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Oct 3, 2023
1 parent 43b24eb commit b68e622
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 80 deletions.
4 changes: 2 additions & 2 deletions app/static/app/js/components/LayersControlLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@ export default class LayersControlLayer extends React.Component {
<div className="col-sm-9 ">
{histogramLoading ?
<i className="fa fa-circle-notch fa-spin fa-fw" /> :
[<select className="form-control" value={bands} onChange={this.handleSelectBands} title={auto_bands.filter !== "" && bands == "auto" ? auto_bands.filter : ""}>
[<select key="sel" className="form-control" value={bands} onChange={this.handleSelectBands} title={auto_bands.filter !== "" && bands == "auto" ? auto_bands.filter : ""}>
<option key="auto" value="auto">{_("Automatic")}</option>
{algo.filters.map(f => <option key={f} value={f}>{f}</option>)}
</select>,
bands == "auto" && !auto_bands.match ?
<i style={{marginLeft: '4px'}} title={interpolate(_("Not every band for %(name)s could be automatically identified."), {name: algo.id}) + "\n" + _("Your sensor might not have the proper bands for using this algorithm.")} className="fa fa-exclamation-circle info-button"></i>
<i key="ico" style={{marginLeft: '4px'}} title={interpolate(_("Not every band for %(name)s could be automatically identified."), {name: algo.id}) + "\n" + _("Your sensor might not have the proper bands for using this algorithm.")} className="fa fa-exclamation-circle info-button"></i>
: ""]}
</div>
</div> : ""}
Expand Down
2 changes: 1 addition & 1 deletion app/static/app/js/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Map extends React.Component {

hasBands = (bands, orthophoto_bands) => {
if (!orthophoto_bands) return false;
console.log(orthophoto_bands)

for (let i = 0; i < bands.length; i++){
if (orthophoto_bands.find(b => b.description !== null && b.description.toLowerCase() === bands[i].toLowerCase()) === undefined) return false;
}
Expand Down
2 changes: 2 additions & 0 deletions app/static/app/js/components/ProjectListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ class ProjectListItem extends React.Component {
render() {
const { refreshing, data, filterTags } = this.state;
const numTasks = data.tasks.length;

// const numValidTasks = data.tasks.filter(t => )
const canEdit = this.hasPermission("change");
const userTags = Tags.userTags(data.tags);
let deleteWarning = _("All tasks, images and models associated with this project will be permanently deleted. Are you sure you want to continue?");
Expand Down
Loading

0 comments on commit b68e622

Please sign in to comment.