Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
kaheetonaa committed Oct 17, 2024
1 parent da56391 commit c25daa4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
16 changes: 13 additions & 3 deletions dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -42418,6 +42418,10 @@
if (i3.annotation) x2.annotation = i3.annotation;
if (i3.transform) x2.transform = i3.transform;
if (i3.selectedIDs) x2.selectedIDs = i3.selectedIDs;
if (typeof __team_selected != "undefined") {
x2.team_selcted = __team_selected;
}
;
return x2;
});
return JSON.stringify({
Expand Down Expand Up @@ -42516,7 +42520,8 @@
imageryUsed: d2.imageryUsed,
photoOverlaysUsed: d2.photoOverlaysUsed,
transform: d2.transform,
selectedIDs: d2.selectedIDs
selectedIDs: d2.selectedIDs,
__team_selected: d2.team_selcted
};
});
} else {
Expand Down Expand Up @@ -42561,7 +42566,7 @@
_hasUnresolvedRestorableChanges = false;
corePreferences(getKey("saved_history"), null);
corePreferences("comment", null);
corePreferences("hashtags", __team_selected);
corePreferences("hashtags", null);
corePreferences("source", null);
}
return history;
Expand Down Expand Up @@ -74066,7 +74071,12 @@
corePreferences("commentDate", Date.now());
}
if (context.defaultChangesetHashtags()) {
corePreferences("hashtags", __team_selected);
if (typeof __team_selected != "undefined") {
corePreferences("hashtags", __team_selected);
} else {
context.defaultChangesetHashtags();
}
;
corePreferences("commentDate", Date.now());
}
var detected = utilDetect();
Expand Down
4 changes: 2 additions & 2 deletions dist/iD.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions modules/core/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ export function coreHistory(context) {
if (i.annotation) x.annotation = i.annotation;
if (i.transform) x.transform = i.transform;
if (i.selectedIDs) x.selectedIDs = i.selectedIDs;
if (typeof __team_selected!= "undefined"){x.team_selcted=__team_selected;};

return x;
});
Expand Down Expand Up @@ -613,7 +614,8 @@ export function coreHistory(context) {
imageryUsed: d.imageryUsed,
photoOverlaysUsed: d.photoOverlaysUsed,
transform: d.transform,
selectedIDs: d.selectedIDs
selectedIDs: d.selectedIDs,
__team_selected: d.team_selcted
};
});

Expand Down Expand Up @@ -676,7 +678,7 @@ export function coreHistory(context) {

// clear the changeset metadata associated with the saved history
prefs('comment', null);
prefs('hashtags', __team_selected);
prefs('hashtags', null);
prefs('source', null);
}
return history;
Expand Down
2 changes: 1 addition & 1 deletion modules/ui/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function uiCommit(context) {
prefs('commentDate', Date.now());
}
if (context.defaultChangesetHashtags()) {
prefs('hashtags', __team_selected);//context.defaultChangesetHashtags(__team_selected)
if(typeof __team_selected!= "undefined"){prefs('hashtags', __team_selected)}else{context.defaultChangesetHashtags()};//context.defaultChangesetHashtags(__team_selected)
prefs('commentDate', Date.now());
}

Expand Down

0 comments on commit c25daa4

Please sign in to comment.