17 lines
484 B
JavaScript
17 lines
484 B
JavaScript
function ExternalServiceViewModel()
|
|
{
|
|
this.el = '#external-service-options';
|
|
this.data = {
|
|
service_type: ''
|
|
};
|
|
this.computed = {
|
|
hasOAuthStandardOptions()
|
|
{
|
|
// This list must be mirrored in App\ExternalService
|
|
return this.service_type === 'dropbox' ||
|
|
this.service_type === 'facebook' ||
|
|
this.service_type === 'google' ||
|
|
this.service_type === 'twitter';
|
|
}
|
|
}
|
|
} |