forked from MapComplete/MapComplete
UX: add indicicator in settings of pending changes, add button to clear the selected changes
This commit is contained in:
parent
74b2d38a14
commit
0a7d48de5b
5 changed files with 58 additions and 5 deletions
|
@ -95,6 +95,7 @@ import NothingKnown from "./Popup/NothingKnown.svelte"
|
|||
import { CombinedFetcher } from "../Logic/Web/NearbyImagesSearch"
|
||||
import { And } from "../Logic/Tags/And"
|
||||
import CloseNoteButton from "./Popup/Notes/CloseNoteButton.svelte"
|
||||
import PendingChangesIndicator from "./BigComponents/PendingChangesIndicator.svelte"
|
||||
|
||||
class NearbyImageVis implements SpecialVisualization {
|
||||
// Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
|
||||
|
@ -2003,6 +2004,14 @@ export default class SpecialVisualizations {
|
|||
})
|
||||
return new VariableUiElement(translation)
|
||||
}
|
||||
},
|
||||
{
|
||||
funcName:"pending_changes",
|
||||
docs: "A module showing the pending changes, with the option to clear the pending changes",
|
||||
args:[],
|
||||
constr(state: SpecialVisualizationState, tagSource: UIEventSource<Record<string, string>>, argument: string[], feature: Feature, layer: LayerConfig): BaseUIElement {
|
||||
return new SvelteUIElement(PendingChangesIndicator, {state, compact: false})
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue