;
.avatarImg {
width: 40px;
diff --git a/src/app/components/sidebar/sidebar-channels/add-new-channel/add-new-channel.component.ts b/src/app/components/sidebar/sidebar-channels/add-new-channel/add-new-channel.component.ts
index a7c969a..04830c8 100644
--- a/src/app/components/sidebar/sidebar-channels/add-new-channel/add-new-channel.component.ts
+++ b/src/app/components/sidebar/sidebar-channels/add-new-channel/add-new-channel.component.ts
@@ -24,7 +24,7 @@ export class AddNewChannelComponent {
currentDate: string = new Date().toISOString().split('T')[0];
changeImg: boolean = false;
userName: string = '';
- showExistenUsers: boolean = false;
+ showExistedUsers: boolean = false;
getSearchedUser: User[] = [];
channelName: string = '';
channelDescription: string = '';
@@ -90,7 +90,7 @@ export class AddNewChannelComponent {
* @param userName The name of the user to filter.
*/
filterUsers(userName: string) {
- this.showExistenUsers = true;
+ this.showExistedUsers = true;
this.getSearchedUser = [];
const searchedUser = userName.toLowerCase().trim();
const filteredUsers = this.userService.getUsers().filter((user) => {
@@ -120,7 +120,7 @@ export class AddNewChannelComponent {
console.log('User already selected!');
}
this.userName = '';
- this.showExistenUsers = false;
+ this.showExistedUsers = false;
}
/**
@@ -129,14 +129,14 @@ export class AddNewChannelComponent {
*/
spliceCurrentUser(index: number) {
this.getSelectedUsers.splice(index, 1);
- this.showExistenUsers = false;
+ this.showExistedUsers = false;
}
/**
* Toggles the added user box.
*/
toggleAddedUserBox() {
- this.showExistenUsers = false;
+ this.showExistedUsers = false;
}
/**
@@ -144,8 +144,8 @@ export class AddNewChannelComponent {
* @param channelName The name of the channel to check.
*/
checkIfChannelNameIsValid(channelName: string) {
- const channelNameLenght = channelName.length;
- if (channelNameLenght >= 6 && !this.chechIfChannelExist(channelName)) {
+ const channelNameLength = channelName.length;
+ if (channelNameLength >= 6 && !this.checkIfChannelExist(channelName)) {
this.channelService.btnIsValid = true;
} else {
this.channelService.btnIsValid = false;
@@ -153,11 +153,11 @@ export class AddNewChannelComponent {
}
/**
- * Check if channel is allready existing.
+ * Check if channel is already existing.
* @param channelName
* @returns
*/
- chechIfChannelExist(channelName: string) {
+ checkIfChannelExist(channelName: string) {
const filterChannel = this.channelService.allChannels.some(
(channel) => channel.name === channelName
);
diff --git a/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.html b/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.html
index 00c08da..9d0bebf 100644
--- a/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.html
+++ b/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.html
@@ -26,7 +26,7 @@
class=)
@for (channel of getChannels(); track channel) {
diff --git a/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.scss b/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.scss
index 0adbe9f..9fb77a9 100644
--- a/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.scss
+++ b/src/app/components/sidebar/sidebar-channels/sidebar-channels.component.scss
@@ -128,7 +128,7 @@ section {
}
}
-.showAllChanneld {
+.showAllChannels {
animation-name: slideIn;
overflow: auto;
transition: max-height 0.3s ease-in-out;
@@ -162,7 +162,7 @@ section {
}
@media screen and (max-width: $RESPONSIVE_THRESHOLD_MOBILE380px) {
- .showAllChanneld {
+ .showAllChannels {
max-height: 16vh;
}
}
diff --git a/src/app/service/login.service.ts b/src/app/service/login.service.ts
index 02d4a35..4170e9d 100644
--- a/src/app/service/login.service.ts
+++ b/src/app/service/login.service.ts
@@ -255,7 +255,7 @@ export class loginService {
* Retrieves the completion status of the introduction class.
* @returns {boolean} True if the introduction is complete, false otherwise.
*/
- getFinalclass(): boolean {
+ getFinalClass(): boolean {
return this.introCompleteStatus;
}
@@ -326,7 +326,7 @@ export class loginService {
this.getUserIdInLocalStorage(this.currentUser);
}
- // -------------------- UserAddFunktions ------------------------------->
+ // -------------------- UserAddFunctions ------------------------------->
/**
* Updates the online status of the user in Firestore.
diff --git a/src/app/service/user.service.ts b/src/app/service/user.service.ts
index 9bf3627..f4654cf 100644
--- a/src/app/service/user.service.ts
+++ b/src/app/service/user.service.ts
@@ -74,7 +74,7 @@ export class UserService implements OnDestroy {
* Get current user's data.
* @returns Array containing current user's data.
*/
- getCurentUsers() {
+ getCurrentUsers() {
const filteredUser = this.getUsers().filter(
(user) => user.id == this.getCurrentUserId()
);
diff --git a/src/app/shared/components/header/edit-user/edit-user-details/edit-user-details.component.html b/src/app/shared/components/header/edit-user/edit-user-details/edit-user-details.component.html
index faa49ba..275a75d 100644
--- a/src/app/shared/components/header/edit-user/edit-user-details/edit-user-details.component.html
+++ b/src/app/shared/components/header/edit-user/edit-user-details/edit-user-details.component.html
@@ -1,5 +1,5 @@
-@for(i of userService.getCurentUsers(); track i){
+@for(i of userService.getCurrentUsers(); track i){