forked from MapComplete/MapComplete
		
	Removed todo's
This commit is contained in:
		
							parent
							
								
									3586b8eef2
								
							
						
					
					
						commit
						a91c3fde69
					
				
					 4 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
					@ -35,6 +35,7 @@ import ScrollableFullScreen from "./UI/Base/ScrollableFullScreen";
 | 
				
			||||||
import Translations from "./UI/i18n/Translations";
 | 
					import Translations from "./UI/i18n/Translations";
 | 
				
			||||||
import MapControlButton from "./UI/MapControlButton";
 | 
					import MapControlButton from "./UI/MapControlButton";
 | 
				
			||||||
import Combine from "./UI/Base/Combine";
 | 
					import Combine from "./UI/Base/Combine";
 | 
				
			||||||
 | 
					import SelectedFeatureHandler from "./Logic/Actors/SelectedFeatureHandler";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class InitUiElements {
 | 
					export class InitUiElements {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -258,6 +259,7 @@ export class InitUiElements {
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        isOpened.setData(true)
 | 
					        isOpened.setData(true)
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static InitLayerSelection() {
 | 
					    private static InitLayerSelection() {
 | 
				
			||||||
| 
						 | 
					@ -387,7 +389,7 @@ export class InitUiElements {
 | 
				
			||||||
        new ShowDataLayer(source.features, State.state.leafletMap,
 | 
					        new ShowDataLayer(source.features, State.state.leafletMap,
 | 
				
			||||||
            State.state.layoutToUse);
 | 
					            State.state.layoutToUse);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // TOO reenable  new SelectedFeatureHandler(Hash.hash, State.state.selectedElement, source);
 | 
					        new SelectedFeatureHandler(Hash.hash, State.state.selectedElement, source);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,14 +52,12 @@ export class ImageSearcher extends UIEventSource<{ key: string, url: string }[]>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // By wrapping this in a UIEventSource, we prevent multiple queries of loadWikiData
 | 
					        // By wrapping this in a UIEventSource, we prevent multiple queries of loadWikiData
 | 
				
			||||||
        this._wdItem.addCallback(wdItemContents => {
 | 
					        this._wdItem.addCallback(wdItemContents => {
 | 
				
			||||||
            // TODO HANDLE IMAGES
 | 
					 | 
				
			||||||
            const images = ImageSearcher.loadWikidata(wdItemContents).map(url => {
 | 
					            const images = ImageSearcher.loadWikidata(wdItemContents).map(url => {
 | 
				
			||||||
                return {url: url, key: undefined}
 | 
					                return {url: url, key: undefined}
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
            AddImages(images);
 | 
					            AddImages(images);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        this._commons.addCallback(commonsData => {
 | 
					        this._commons.addCallback(commonsData => {
 | 
				
			||||||
            // TODO Handle images
 | 
					 | 
				
			||||||
            const images = ImageSearcher.LoadCommons(commonsData).map(url => {
 | 
					            const images = ImageSearcher.LoadCommons(commonsData).map(url => {
 | 
				
			||||||
                return {url: url, key: undefined}
 | 
					                return {url: url, key: undefined}
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,7 +49,6 @@ export class SubtleButton extends UIElement{
 | 
				
			||||||
            ]).Render();
 | 
					            ]).Render();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Styling todo
 | 
					 | 
				
			||||||
        return new Combine([
 | 
					        return new Combine([
 | 
				
			||||||
            this.image,
 | 
					            this.image,
 | 
				
			||||||
            this.message,
 | 
					            this.message,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -165,7 +165,7 @@ export default class ValidatedTextField {
 | 
				
			||||||
        ValidatedTextField.tp(
 | 
					        ValidatedTextField.tp(
 | 
				
			||||||
            "opening_hours",
 | 
					            "opening_hours",
 | 
				
			||||||
            "Has extra elements to easily input when a POI is opened",
 | 
					            "Has extra elements to easily input when a POI is opened",
 | 
				
			||||||
            (s, country) => true, // TODO
 | 
					            (s, country) => true, 
 | 
				
			||||||
            str => str, 
 | 
					            str => str, 
 | 
				
			||||||
            (value) => {
 | 
					            (value) => {
 | 
				
			||||||
                return new OpeningHoursInput(value);
 | 
					                return new OpeningHoursInput(value);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue