Power Up's card-back-section Not Working

Hi!

Did I miss something on the following card-back-section initialization?

window.TrelloPowerUp.initialize({
  'card-back-section': function(t, opts){
    return {
      title: 'My Card Back Section',
      icon: 'https://cdn.hyperdev.com/us-east-1%3A3d31b21c-01a0-4da2-8827-4bc6e88b7618%2Ficon-gray.svg'
      content: {
        type: 'iframe',
        url: t.signUrl('the_url'),
        height: 500,
      },
      action: {
        text: 'My Action',
        callback: (t) => t.popup({
          title: 'Pop Up',
          items: [{
            text: 'Pop up selection 1',
            callback: function (t, opts) {}
          }, {
            text: 'Pop up selection 2',
            callback: function (t, opts) {}
          }]
        }),
      }
    };
  }
});

The above code failed to create the back section, while the following card-buttons initialization works:

window.TrelloPowerUp.initialize({
  'card-buttons': function(t, opts){
    return [{
      icon: 'https://cdn.glitch.com/1b42d7fe-bda8-4af8-a6c8-eff0cea9e08a%2Frocket-ship.png?1494946700421',
      text: 'Button Text Test',
      callback: (t) => t.popup({
            title: 'Snooze Card',
            items: [{
              text: 'Choose Time',
              callback: function (t, opts) {}
            }, {
              text: 'In 2 hours',
              callback: function (t, opts) {}
            }]
          }),
    }];
  },
});

Notes:

  • The card-back-section capabilities has been activated.

It is working now. :grinning:

Can you share what was happening to cause problems?