mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Copy ID(s) on multiple selection
Copy ID(s) on multiple selection
This commit is contained in:
parent
e29549e711
commit
7c8044d27b
1 changed files with 6 additions and 3 deletions
|
@ -496,12 +496,15 @@ SelectionManager = (function() {
|
|||
that.createApp.deleteSelectedEntities();
|
||||
};
|
||||
|
||||
that.copyIdFromSelectedEntity = function() {
|
||||
if (that.selections.length !== 1) {
|
||||
that.copyIdsFromSelectedEntities = function() {
|
||||
if (that.selections.length === 0) {
|
||||
audioFeedback.rejection();
|
||||
} else {
|
||||
} else if (that.selections.length === 1) {
|
||||
Window.copyToClipboard(that.selections[0]);
|
||||
audioFeedback.confirmation();
|
||||
} else {
|
||||
Window.copyToClipboard(JSON.stringify(that.selections));
|
||||
audioFeedback.confirmation();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue