},
{
text: gettext('Add'),
- id: 'addButton',
+ name: 'addRepo',
disabled: true,
repoInfo: undefined,
handler: function(button, event, record) {
text: gettext('Enable'),
defaultText: gettext('Enable'),
altText: gettext('Disable'),
- id: 'repoEnableButton',
+ name: 'repoEnable',
disabled: true,
bind: {
text: '{enableButtonText}',
let me = this;
let vm = me.getViewModel();
- let addButton = me.down('#addButton');
- addButton.repoInfo = [];
+ let addButton = me.down('button[name=addRepo]');
+ addButton.repoInfo = [];
for (const standardRepo of standardRepos) {
const handle = standardRepo.handle;
const status = standardRepo.status;