Fixes to refactored notifications

A few things I managed to break in the recent refactor
This commit is contained in:
Richard van der Hoff 2016-04-14 19:52:57 +01:00
parent ff5dff45f5
commit 0996a0b140
3 changed files with 53 additions and 31 deletions

View file

@ -16,6 +16,8 @@ limitations under the License.
'use strict';
var StandardActions = require('./StandardActions');
/**
* Enum for state of a push rule as defined by the Vector UI.
* @readonly
@ -39,10 +41,10 @@ module.exports = {
*/
actionsFor: function(pushRuleVectorState) {
if (pushRuleVectorState === this.ON) {
return ACTION_NOTIFY;
return StandardActions.ACTION_NOTIFY;
}
else if (pushRuleVectorState === this.LOUD) {
return ACTION_HIGHLIGHT_DEFAULT_SOUND;
return StandardActions.ACTION_HIGHLIGHT_DEFAULT_SOUND;
}
},