|
|
|
@ -1166,6 +1166,16 @@ settings.addGroup('Meta', function() { |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const pushEnabledWithoutGateway = [ |
|
|
|
|
{ |
|
|
|
|
_id: 'Push_enable', |
|
|
|
|
value: true, |
|
|
|
|
}, { |
|
|
|
|
_id: 'Push_enable_gateway', |
|
|
|
|
value: false, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
settings.addGroup('Push', function() { |
|
|
|
|
this.add('Push_enable', true, { |
|
|
|
|
type: 'boolean', |
|
|
|
@ -1200,15 +1210,7 @@ settings.addGroup('Push', function() { |
|
|
|
|
type: 'boolean', |
|
|
|
|
public: true, |
|
|
|
|
alert: 'Push_Setting_Requires_Restart_Alert', |
|
|
|
|
enableQuery: [ |
|
|
|
|
{ |
|
|
|
|
_id: 'Push_enable', |
|
|
|
|
value: true, |
|
|
|
|
}, { |
|
|
|
|
_id: 'Push_enable_gateway', |
|
|
|
|
value: false, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_test_push', 'push_test', { |
|
|
|
|
type: 'action', |
|
|
|
@ -1221,39 +1223,47 @@ settings.addGroup('Push', function() { |
|
|
|
|
this.section('Certificates_and_Keys', function() { |
|
|
|
|
this.add('Push_apn_passphrase', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_apn_key', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
multiline: true, |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_apn_cert', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
multiline: true, |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_apn_dev_passphrase', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_apn_dev_key', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
multiline: true, |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_apn_dev_cert', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
multiline: true, |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
this.add('Push_gcm_api_key', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
return this.add('Push_gcm_project_number', '', { |
|
|
|
|
type: 'string', |
|
|
|
|
public: true, |
|
|
|
|
enableQuery: pushEnabledWithoutGateway, |
|
|
|
|
secret: true, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|