Added leftServer handling to members list #130
This commit is contained in:
@@ -44,18 +44,6 @@ export class DataService {
|
||||
});
|
||||
}
|
||||
|
||||
// query(query: string, variables: object = {}): Observable<QueryResult> {
|
||||
// return this.http.post<QueryResult>(`${this.appsettings.getApiURL()}/api/graphql`,
|
||||
// JSON.stringify({
|
||||
// query, variables
|
||||
// }), {
|
||||
// headers: new HttpHeaders({
|
||||
// "Content-Type": "application/json"
|
||||
// })
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
|
||||
public query<T>(query: string, variables?: Variables, f?: Function): Observable<T> {
|
||||
return this.http
|
||||
.post<{ data: T }>(`${this.appsettings.getApiURL()}/api/graphql`, {
|
||||
|
@@ -114,7 +114,7 @@ export class SidebarService {
|
||||
|
||||
if (this.server$.value) {
|
||||
this.serverMenu.visible = true;
|
||||
this.serverMembers.visible = !!user?.isAdmin;
|
||||
this.serverMembers.visible = !!user?.isModerator;
|
||||
} else {
|
||||
this.serverMenu.visible = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user