(selection)
| 323 | // |
| 324 | // |
| 325 | function render(selection) { |
| 326 | const osm = context.services.osm; |
| 327 | if (!osm) return; |
| 328 | |
| 329 | let header = selection.selectAll('.header') |
| 330 | .data([0]); |
| 331 | |
| 332 | let headerTitle = header.enter() |
| 333 | .append('div') |
| 334 | .attr('class', 'header fillL'); |
| 335 | |
| 336 | headerTitle |
| 337 | .append('div') |
| 338 | .append('h3') |
| 339 | .html(l10n.tHtml('commit.title')); |
| 340 | |
| 341 | headerTitle |
| 342 | .append('button') |
| 343 | .attr('class', 'close') |
| 344 | .on('click', function() { |
| 345 | dispatch.call('cancel', this); |
| 346 | }) |
| 347 | .call(uiIcon('#rapid-icon-close')); |
| 348 | |
| 349 | let body = selection.selectAll('.body') |
| 350 | .data([0]); |
| 351 | |
| 352 | body = body.enter() |
| 353 | .append('div') |
| 354 | .attr('class', 'body') |
| 355 | .merge(body); |
| 356 | |
| 357 | |
| 358 | // Changeset Section |
| 359 | let changesetSection = body.selectAll('.changeset-editor') |
| 360 | .data([0]); |
| 361 | |
| 362 | changesetSection = changesetSection.enter() |
| 363 | .append('div') |
| 364 | .attr('class', 'modal-section changeset-editor') |
| 365 | .merge(changesetSection); |
| 366 | |
| 367 | changesetSection |
| 368 | .call(changesetEditor |
| 369 | .changesetID(uploader.changeset.id) |
| 370 | .tags(uploader.changeset.tags) |
| 371 | ); |
| 372 | |
| 373 | |
| 374 | // Warnings |
| 375 | body.call(commitWarnings); |
| 376 | |
| 377 | |
| 378 | // Upload Explanation |
| 379 | let saveSection = body.selectAll('.save-section') |
| 380 | .data([0]); |
| 381 | |
| 382 | saveSection = saveSection.enter() |
nothing calls this directly
no test coverage detected