summaryrefslogtreecommitdiff
path: root/web-ui/app/js
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-14 15:54:59 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-14 15:55:37 -0300
commitf594529222d7da7c4d825841a9c501a57ba90e40 (patch)
tree9128906974a6da969672930ef178d04f8db54e6a /web-ui/app/js
parent424f135cf1c777399ff6659b7e5ba1d1f37593ea (diff)
#442 Add feature hiddig to feedback link.
Diffstat (limited to 'web-ui/app/js')
-rw-r--r--web-ui/app/js/page/feedback.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web-ui/app/js/page/feedback.js b/web-ui/app/js/page/feedback.js
index 34af9b67..48747280 100644
--- a/web-ui/app/js/page/feedback.js
+++ b/web-ui/app/js/page/feedback.js
@@ -15,7 +15,8 @@
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['flight/lib/component', 'views/templates', 'page/events'], function (defineComponent, templates, events) {
+define(['flight/lib/component', 'views/templates', 'page/events', 'features'],
+ function (defineComponent, templates, events, features) {
'use strict';
return defineComponent(function () {
@@ -28,8 +29,10 @@ define(['flight/lib/component', 'views/templates', 'page/events'], function (def
}
this.after('initialize', function () {
- this.render();
- this.on('click', this.onClick);
+ if (features.isEnabled('feedback')) {
+ this.render();
+ this.on('click', this.onClick);
+ }
});
});