From b9dee57576215fb1e0deaaa1e8ef9e4038843d24 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 2 Sep 2015 11:39:50 +0200 Subject: [PATCH] Streamline of config. --- .../app/controllers/_profile/calendar_subscriptions.js.coffee | 2 +- .../javascripts/app/controllers/_profile/language.js.coffee | 2 +- .../javascripts/app/controllers/_profile/notification.js.coffee | 2 +- .../javascripts/app/controllers/_profile/password.js.coffee | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_profile/calendar_subscriptions.js.coffee b/app/assets/javascripts/app/controllers/_profile/calendar_subscriptions.js.coffee index 012474f8d..ef0c3e101 100644 --- a/app/assets/javascripts/app/controllers/_profile/calendar_subscriptions.js.coffee +++ b/app/assets/javascripts/app/controllers/_profile/calendar_subscriptions.js.coffee @@ -91,4 +91,4 @@ class CalendarSubscriptions extends App.Controller msg: App.i18n.translateContent( data.message ) ) -App.Config.set( 'CalendarSubscriptions', { prio: 3000, name: 'Calendar', parent: '#profile', target: '#profile/calendar_subscriptions', controller: CalendarSubscriptions }, 'NavBarProfile' ) \ No newline at end of file +App.Config.set( 'CalendarSubscriptions', { prio: 3000, name: 'Calendar', parent: '#profile', target: '#profile/calendar_subscriptions', role: ['Agent'], controller: CalendarSubscriptions }, 'NavBarProfile' ) diff --git a/app/assets/javascripts/app/controllers/_profile/language.js.coffee b/app/assets/javascripts/app/controllers/_profile/language.js.coffee index b13278d1e..b73b69c74 100644 --- a/app/assets/javascripts/app/controllers/_profile/language.js.coffee +++ b/app/assets/javascripts/app/controllers/_profile/language.js.coffee @@ -69,4 +69,4 @@ class Index extends App.Controller msg: App.i18n.translateContent(data.message) ) -App.Config.set( 'Language', { prio: 1000, name: 'Language', parent: '#profile', target: '#profile/language', controller: Index }, 'NavBarProfile' ) \ No newline at end of file +App.Config.set( 'Language', { prio: 1000, name: 'Language', parent: '#profile', target: '#profile/language', controller: Index }, 'NavBarProfile' ) diff --git a/app/assets/javascripts/app/controllers/_profile/notification.js.coffee b/app/assets/javascripts/app/controllers/_profile/notification.js.coffee index 74314d99c..51588ee29 100644 --- a/app/assets/javascripts/app/controllers/_profile/notification.js.coffee +++ b/app/assets/javascripts/app/controllers/_profile/notification.js.coffee @@ -146,4 +146,4 @@ class Index extends App.Controller msg: App.i18n.translateContent( data.message ) ) -App.Config.set( 'Notifications', { prio: 2600, name: 'Notifications', parent: '#profile', target: '#profile/notifications', role: ['Agent'], controller: Index }, 'NavBarProfile' ) \ No newline at end of file +App.Config.set( 'Notifications', { prio: 2600, name: 'Notifications', parent: '#profile', target: '#profile/notifications', role: ['Agent'], controller: Index }, 'NavBarProfile' ) diff --git a/app/assets/javascripts/app/controllers/_profile/password.js.coffee b/app/assets/javascripts/app/controllers/_profile/password.js.coffee index ad194c703..34a7e4442 100644 --- a/app/assets/javascripts/app/controllers/_profile/password.js.coffee +++ b/app/assets/javascripts/app/controllers/_profile/password.js.coffee @@ -79,4 +79,3 @@ class Index extends App.Controller @formEnable( @$('form') ) App.Config.set( 'Password', { prio: 2000, name: 'Password', parent: '#profile', target: '#profile/password', controller: Index }, 'NavBarProfile' ) -