Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
You need to sign in or sign up before continuing.
Commit 7d108edd
authored
Aug 08, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments from merge request
1 parent
20b09254
Pipeline
#81
failed
in 0 seconds
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
7 deletions
code/moya-angular/src/app/app.module.ts
code/moya-angular/src/app/modules/viplist/viplist.service.ts
code/moya-angular/src/app/app.module.ts
View file @
7d108ed
...
...
@@ -35,7 +35,6 @@ import {createApollo} from './shared/config/moya.config';
LoginModule
,
LeftMenuModule
,
HttpClientModule
,
ApolloModule
,
HttpLinkModule
,
...
...
code/moya-angular/src/app/modules/viplist/viplist.service.ts
View file @
7d108ed
...
...
@@ -5,16 +5,11 @@ import {Injectable} from '@angular/core';
import
{
Vip
,
VipFragmentsCombined
}
from
'./models/vip.model'
;
import
{
User
}
from
'../../shared/models/user.model'
;
import
{
UserService
}
from
'../../shared/services/user.service'
;
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
MOYA_BASE_URL
,
MOYA_REST_URL
}
from
'../../shared/config/moya.config'
;
import
gql
from
'graphql-tag'
;
import
{
EventUser
}
from
'../../shared/models/event-user.model'
;
import
{
Apollo
}
from
'apollo-angular'
;
import
'rxjs-compat/add/operator/map'
;
import
{
first
,
map
}
from
'rxjs/operators'
;
import
{
Error
}
from
'tslint/lib/error'
;
...
...
@@ -69,7 +64,7 @@ export class ViplistService {
* get vips
*/
public
get
():
Observable
<
Array
<
Vip
>>
{
return
this
.
apollo
.
watchQuery
<
VipsQueryRoot
>
({
query
:
Q_VIPS_N_DATA
}).
valueChanges
.
pipe
(
map
(
x
=>
{
console
.
log
(
x
.
data
.
vips
);
return
x
.
data
.
vips
;
}
));
return
this
.
apollo
.
watchQuery
<
VipsQueryRoot
>
({
query
:
Q_VIPS_N_DATA
}).
valueChanges
.
pipe
(
map
(
x
=>
x
.
data
.
vips
));
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment