Partial porting over of vector controller logic to react sdk.

This commit is contained in:
David Baker 2015-09-17 18:23:38 +01:00
parent 6eb18f0268
commit abeed92501
12 changed files with 812 additions and 30 deletions

View file

@ -16,7 +16,6 @@ limitations under the License.
'use strict';
var sdk = require('../../index');
var Notifier = sdk.getComponent('organisms/Notifier');
var dis = require("../../dispatcher");
module.exports = {
@ -37,10 +36,12 @@ module.exports = {
},
enabled: function() {
var Notifier = sdk.getComponent('organisms.Notifier');
return Notifier.isEnabled();
},
onClick: function() {
var Notifier = sdk.getComponent('organisms.Notifier');
var self = this;
if (!Notifier.supportsDesktopNotifications()) {
return;