Skip to content

Commit

Permalink
chore: dont show color picker for label
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Aug 10, 2023
1 parent 7b57a45 commit 6f33117
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions colors/ColorContextPadProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ ColorContextPadProvider.prototype.getMultiElementContextPadEntries = function(el
};

ColorContextPadProvider.prototype._createPopupAction = function(elements) {
if (elements.length === 1 && elements[0].labelTarget) {
console.log('return no entries');

return {};
} else {
console.log('return entries');
}

const canvas = this._canvas;
const translate = this._translate;
Expand Down

0 comments on commit 6f33117

Please sign in to comment.