Partial porting over of vector controller logic to react sdk.
This commit is contained in:
parent
6eb18f0268
commit
abeed92501
12 changed files with 812 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue