diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee index ea591ce00..047216e1f 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee @@ -14,9 +14,9 @@ class App.TicketZoomAttributeBar extends App.Controller constructor: -> super - @secondaryAction = @preferencesGet() || 'closeTab' - if !@overview_id && @secondaryAction is 'closeNextInOverview' - @secondaryAction = 'closeTab' + @secondaryAction = 'closeTab' + if @overview_id + @secondaryAction = 'closeNextInOverview' @subscribeId = App.Macro.subscribe(@render) @render() @@ -71,10 +71,3 @@ class App.TicketZoomAttributeBar extends App.Controller element.closest('.js-secondaryAction').find('.js-selectedIcon').addClass('is-selected') @secondaryActionButton.text(text) @secondaryActionButton.data('type', type) - App.LocalStorage.set(@preferencesStoreKey(), type, @Session.get('id')) - - preferencesGet: => - App.LocalStorage.get(@preferencesStoreKey(), @Session.get('id')) - - preferencesStoreKey: => - "ticketZoom:taskAktion:#{@ticket_id}" diff --git a/app/assets/javascripts/app/views/ticket_zoom/attribute_bar.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/attribute_bar.jst.eco index 54d01394b..a034efd86 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/attribute_bar.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/attribute_bar.jst.eco @@ -1,7 +1,6 @@ -
+ <% if @macroDisabled: %>