mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
update "add mapillary tag" button state when tags of the feature change
addresses https://github.com/openstreetmap/iD/pull/10046#pullrequestreview-2176313208
This commit is contained in:
@@ -64,10 +64,13 @@ export function uiPhotoviewer(context) {
|
||||
buildResizeListener(selection, 'resize', dispatch, { resizeOnY: true })
|
||||
);
|
||||
|
||||
// set_photo_from_viewer button
|
||||
// update sett_photo_from_viewer button on selection change and when tags change
|
||||
context.features().on('change.setPhotoFromViewer', function() {
|
||||
setPhotoFromViewerButton();
|
||||
});
|
||||
context.history().on('change.setPhotoFromViewer', function() {
|
||||
setPhotoFromViewerButton();
|
||||
});
|
||||
|
||||
|
||||
function setPhotoFromViewerButton() {
|
||||
|
||||
Reference in New Issue
Block a user