diff --git a/src/app/components/about/about.component.html b/src/app/components/about/about.component.html
index 6edf33c..f0d7f9d 100644
--- a/src/app/components/about/about.component.html
+++ b/src/app/components/about/about.component.html
@@ -1,3 +1,4 @@
+
Greenvironment
@@ -17,3 +18,4 @@
Login
+
\ No newline at end of file
diff --git a/src/app/components/about/about.component.sass b/src/app/components/about/about.component.sass
index 5011064..90e88b1 100644
--- a/src/app/components/about/about.component.sass
+++ b/src/app/components/about/about.component.sass
@@ -3,6 +3,12 @@
@import '~@angular/material/theming'
@import '../../../styles/greenvironment-material-theme.scss'
+#about
+ position: fixed
+ width: 100%
+ height: calc(100% - 56px)
+ overflow: scroll
+
#text0, #text2
padding: 2em
max-width: 100%
diff --git a/src/app/components/feed/feed.component.html b/src/app/components/feed/feed.component.html
index 4acdf59..6c021fb 100644
--- a/src/app/components/feed/feed.component.html
+++ b/src/app/components/feed/feed.component.html
@@ -30,7 +30,7 @@
- You are not logged in. Do you want to post something?
+ You need no log in to post something.
diff --git a/src/app/components/main-navigation/main-navigation.component.sass b/src/app/components/main-navigation/main-navigation.component.sass
index 4daa65d..6fdc7c0 100644
--- a/src/app/components/main-navigation/main-navigation.component.sass
+++ b/src/app/components/main-navigation/main-navigation.component.sass
@@ -1,6 +1,5 @@
.mat-sidenav-container
- margin-top: 56px
- height: calc(100vh - 56px)
+ height: 100vh
.sidenav
width: 200px
@@ -22,6 +21,9 @@
.mat-tab-link
height: 56px
+.mat-sidenav-content
+ padding-top: 56px
+
#link-box
padding: 0.5em
diff --git a/src/app/services/datasharing.service.ts b/src/app/services/datasharing.service.ts
index bc0d047..7116724 100644
--- a/src/app/services/datasharing.service.ts
+++ b/src/app/services/datasharing.service.ts
@@ -19,6 +19,12 @@ export class DatasharingService {
this.userInfoSource.next(pUserInfo);
}
+ addSentRequestUserID(id: number) {
+ const user: User = this.userInfoSource.getValue();
+ user.sentRequestUserIDs.push(id);
+ this.changeUserInfo(user);
+ }
+
changeChatIDs(pChatIDs: number[]) {
this.chatIDsSource.next(pChatIDs);
}
diff --git a/src/app/services/request/request.service.ts b/src/app/services/request/request.service.ts
index 8cf340e..273a823 100644
--- a/src/app/services/request/request.service.ts
+++ b/src/app/services/request/request.service.ts
@@ -37,6 +37,7 @@ export class RequestService {
}
public sendFriendRequest(user: User) {
+ this.data.addSentRequestUserID(user.userID);
const headers = new Headers();
headers.set('Content-Type', 'application/json');
this.http.post(environment.graphQLUrl, this.buildJsonRequest(user.userID, 'FRIENDREQUEST'))
diff --git a/src/typings.d.ts b/src/typings.d.ts
index 4a77fa7..44692e6 100644
--- a/src/typings.d.ts
+++ b/src/typings.d.ts
@@ -1,4 +1,5 @@
declare module '*.svg' {
const svg: string;
export default svg;
- }
\ No newline at end of file
+ }
+
\ No newline at end of file