App.QrCodesLinkComponent = Ember.Component.extend
  tagName: 'a'
  target: '_blank'
  classNames: ["table-qr-codes"]
  attributeBindings: ['href', 'target']
  href: Ember.computed 'section.id', 'table.id', ->
    Routes.qr_codes_suppliers_tables_path(section_id: @get('section.id'), table_id: @get('table.id'))
  click: ->
    # Somehow this is needed for within the actions menu
    @$().click()

