Do not show notify on feature enable/disable. Fixed not shown clue.
This commit is contained in:
parent
81e27f8901
commit
0d5801528a
6 changed files with 12 additions and 4 deletions
|
@ -355,6 +355,8 @@ class App.ControllerNavSidbar extends App.ControllerContent
|
|||
constructor: (params) ->
|
||||
super
|
||||
|
||||
@navupdate ''
|
||||
|
||||
if @authenticateRequired
|
||||
return if !@authenticate()
|
||||
|
||||
|
|
|
@ -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})
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue