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 MapControlButton from "./UI/MapControlButton";
|
||||
import Combine from "./UI/Base/Combine";
|
||||
import SelectedFeatureHandler from "./Logic/Actors/SelectedFeatureHandler";
|
||||
|
||||
export class InitUiElements {
|
||||
|
||||
|
@ -258,6 +259,7 @@ export class InitUiElements {
|
|||
})
|
||||
isOpened.setData(true)
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static InitLayerSelection() {
|
||||
|
@ -387,7 +389,7 @@ export class InitUiElements {
|
|||
new ShowDataLayer(source.features, State.state.leafletMap,
|
||||
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
|
||||
this._wdItem.addCallback(wdItemContents => {
|
||||
// TODO HANDLE IMAGES
|
||||
const images = ImageSearcher.loadWikidata(wdItemContents).map(url => {
|
||||
return {url: url, key: undefined}
|
||||
});
|
||||
AddImages(images);
|
||||
});
|
||||
this._commons.addCallback(commonsData => {
|
||||
// TODO Handle images
|
||||
const images = ImageSearcher.LoadCommons(commonsData).map(url => {
|
||||
return {url: url, key: undefined}
|
||||
});
|
||||
|
|
|
@ -49,7 +49,6 @@ export class SubtleButton extends UIElement{
|
|||
]).Render();
|
||||
}
|
||||
|
||||
// Styling todo
|
||||
return new Combine([
|
||||
this.image,
|
||||
this.message,
|
||||
|
|
|
@ -165,7 +165,7 @@ export default class ValidatedTextField {
|
|||
ValidatedTextField.tp(
|
||||
"opening_hours",
|
||||
"Has extra elements to easily input when a POI is opened",
|
||||
(s, country) => true, // TODO
|
||||
(s, country) => true,
|
||||
str => str,
|
||||
(value) => {
|
||||
return new OpeningHoursInput(value);
|
||||
|
|
Loading…
Reference in a new issue