|
3 | 3 | <div local-class='addon-page-wrapper'> |
4 | 4 | <AddonsService::Manager |
5 | 5 | @node={{this.model}} |
| 6 | + @activeFilterType={{this.activeFilterType}} |
| 7 | + @updateActiveFilterType={{fn (mut this.activeFilterType)}} |
| 8 | + @updateTabIndex={{fn (mut this.tabIndex)}} |
6 | 9 | as |manager| |
7 | 10 | > |
8 | 11 | {{#if manager.selectedProvider}} |
|
166 | 169 | <div |
167 | 170 | data-test-configured-addon-name |
168 | 171 | local-class='configured-addon-display-name' |
169 | | - {{did-insert (perform configuredAddon.getRootFolderName)}} |
| 172 | + {{did-insert (perform configuredAddon.getSelectedItemName)}} |
170 | 173 | > |
171 | 174 | <span>{{configuredAddon.displayName}}</span> |
172 | 175 | <span local-class='float-right'> |
|
240 | 243 | {{manager.selectedConfiguration.displayName}} |
241 | 244 | </div> |
242 | 245 | <div> |
243 | | - {{#if manager.selectedConfiguration.rootFolder}} |
244 | | - {{manager.selectedConfiguration.rootFolderName}} |
| 246 | + {{#if (instance-of manager.selectedConfiguration 'ConfiguredLinkAddon')}} |
| 247 | + {{#if manager.selectedConfiguration.targetUrl}} |
| 248 | + {{manager.selectedConfiguration.targetItemName}} |
| 249 | + {{else}} |
| 250 | + {{t 'addons.list.target-not-set'}} |
| 251 | + {{/if}} |
245 | 252 | {{else}} |
246 | | - {{t 'addons.list.root-folder-not-set'}} |
| 253 | + {{#if manager.selectedConfiguration.rootFolder}} |
| 254 | + {{manager.selectedConfiguration.rootFolderName}} |
| 255 | + {{else}} |
| 256 | + {{t 'addons.list.root-folder-not-set'}} |
| 257 | + {{/if}} |
247 | 258 | {{/if}} |
248 | 259 | </div> |
249 | 260 | <div> |
|
274 | 285 | <AddonsService::ConfiguredAddonEdit |
275 | 286 | @configuredAddon={{manager.selectedConfiguration}} |
276 | 287 | @authorizedAccount={{manager.selectedAccount}} |
| 288 | + @supportedResourceTypes={{manager.selectedProvider.provider.supportedResourceTypes}} |
277 | 289 | @onSave={{perform manager.saveOrCreateConfiguration}} |
278 | 290 | @onCancel={{manager.cancelSetup}} |
279 | 291 | /> |
|
282 | 294 | {{/let}} |
283 | 295 | {{else}} |
284 | 296 | <AriaTabs |
285 | | - @defaultIndex={{0}} |
| 297 | + @selectedIndex={{this.tabIndex}} |
| 298 | + @onSelect={{action (mut this.tabIndex)}} |
286 | 299 | local-class='tabs' |
287 | 300 | as |tab| |
288 | 301 | > |
|
324 | 337 | <Button |
325 | 338 | data-test-addon-list-filter={{type}} |
326 | 339 | data-analytics-name={{t (concat 'addons.list.filter.' type)}} |
327 | | - local-class='filter-button {{if (eq manager.activeFilterType type) 'active'}}' |
| 340 | + local-class='filter-button {{if (eq this.activeFilterType type) 'active'}}' |
328 | 341 | @layout='fake-link' |
329 | 342 | {{on 'click' (fn manager.filterByAddonType type)}} |
330 | 343 | > |
|
364 | 377 | <Button |
365 | 378 | data-test-addon-list-filter={{type}} |
366 | 379 | data-analytics-name={{t (concat 'addons.list.filter.' type)}} |
367 | | - local-class='filter-button {{if (eq manager.activeFilterType type) 'active'}}' |
| 380 | + local-class='filter-button {{if (eq this.activeFilterType type) 'active'}}' |
368 | 381 | @layout='fake-link' |
369 | 382 | {{on 'click' (fn manager.filterByAddonType type)}} |
370 | 383 | > |
|
0 commit comments