Sha256: ba272ad8a513c941d57aba19ae0dc6ea1b2e2d0b1cf0f23444f66684063f7780

Contents?: true

Size: 693 Bytes

Versions: 16

Compression:

Stored size: 693 Bytes

Contents

Dashboard.TagsTabController = Ember.ArrayController.extend Dashboard.PaginableControllerMixin,
  actions:
    destroy: (item)->
      if window.confirm(Ember.I18n.t('words.are_you_sure_to_delete'))
        item.destroyRecord()

        @removeObjects(item)

Dashboard.TagsEditController = Ember.ObjectController.extend
  actions:
    save: ->
      tag = @get('model')

      tag.save()
        .then =>
          @transitionToRoute 'tags'
        .catch ->
          # must supply catch promise, otherwise Ember will throw a
          # 'backend rejected the commit' error.

    cancel: ->
      @transitionToRoute('tags')

Dashboard.TagsNewController = Dashboard.TagsEditController.extend()

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dune-dashboard-1.1.5 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.1.4 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.1.3 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.1.2 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.1.1 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.1.0 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.9 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.8 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.7 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.6 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.5 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.4 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.3 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.2 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.1 app/assets/javascripts/controllers/tags.coffee
dune-dashboard-1.0.0 app/assets/javascripts/controllers/tags.coffee