Do not show notify on feature enable/disable. Fixed not shown clue.

This commit is contained in:
Martin Edenhofer 2016-04-30 08:40:05 +02:00
parent 81e27f8901
commit 0d5801528a
6 changed files with 12 additions and 4 deletions

View file

@ -355,6 +355,8 @@ class App.ControllerNavSidbar extends App.ControllerContent
constructor: (params) ->
super
@navupdate ''
if @authenticateRequired
return if !@authenticate()

View file

@ -68,4 +68,4 @@ class App.ControllerIntegrationBase extends App.Controller
value =
items: [params]
App.Setting.set(@featureConfig, value)
App.Setting.set(@featureConfig, value, {notify: true})

View file

@ -60,7 +60,7 @@ class Form extends App.Controller
config
setConfig: (value) ->
App.Setting.set('clearbit_config', value)
App.Setting.set('clearbit_config', value, {notify: true})
render: =>
@config = @currentConfig()

View file

@ -47,7 +47,7 @@ class Form extends App.Controller
config
setConfig: (value) ->
App.Setting.set('sipgate_config', value)
App.Setting.set('sipgate_config', value, {notify: true})
render: =>
@config = @currentConfig()

View file

@ -45,7 +45,7 @@ class App.Dashboard extends App.Controller
mayBeClues: =>
return if !@clueAccess
return if !@activeState
return if !@shown
return if @Config.get('switch_back_to_possible')
preferences = @Session.get('preferences')
@clueAccess = false

View file

@ -12,6 +12,12 @@ class App.Setting extends App.Model
setting.state_current.value = value
if !options.done
options.done = ->
if options.notify
App.Event.trigger 'notify', {
type: 'success'
msg: App.i18n.translateContent('Update successful!')
timeout: 2000
}
App.Setting.preferencesPost(@)
if !options.fail