Browse Source

Remove cba on non-owned pads

master
yflory 9 months ago
parent
commit
cf8841cdfa
1 changed files with 1 additions and 0 deletions
  1. 1
      www/code/inner.js

1
www/code/inner.js

@ -452,6 +452,7 @@ define([
markers.ready(); markers.ready();
common.getPadMetadata(null, function (md) { common.getPadMetadata(null, function (md) {
if (md && md.error) { return; } if (md && md.error) { return; }
if (!Array.isArray(md.owners)) { return void markers.setState(false); }
if (!common.isOwned(md.owners)) { return; } if (!common.isOwned(md.owners)) { return; }
// We're the owner: add the button and enable the colors if needed // We're the owner: add the button and enable the colors if needed
mkColorByAuthor(framework, markers); mkColorByAuthor(framework, markers);

Loading…
Cancel
Save