From f141602c2906e72694d90e13e54d370e8b8cbd00 Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Thu, 5 May 2022 02:50:09 +0200 Subject: Prosiren korisnik na frontu. Popravljen bug po izmeni korisnickog profila. --- frontend/src/app/_data/User.ts | 4 +++- .../src/app/_modals/register-modal/register-modal.component.ts | 4 +++- frontend/src/app/_pages/profile/profile.component.ts | 9 ++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) (limited to 'frontend') diff --git a/frontend/src/app/_data/User.ts b/frontend/src/app/_data/User.ts index be42ed0a..527bac77 100644 --- a/frontend/src/app/_data/User.ts +++ b/frontend/src/app/_data/User.ts @@ -6,6 +6,8 @@ export default class User { public password: string = '', public firstName: string = '', public lastName: string = '', - public photoId: string = '1' //difoltna profilna slika + public photoId: string = '1', //difoltna profilna slika + public isPermament:boolean=false, + public dateCreated:Date=new Date() ) { } } \ No newline at end of file diff --git a/frontend/src/app/_modals/register-modal/register-modal.component.ts b/frontend/src/app/_modals/register-modal/register-modal.component.ts index 9da5484d..575fc717 100644 --- a/frontend/src/app/_modals/register-modal/register-modal.component.ts +++ b/frontend/src/app/_modals/register-modal/register-modal.component.ts @@ -150,7 +150,9 @@ export class RegisterModalComponent implements OnInit { username: this.username, password: this.pass1, email: this.email, - photoId: "1" + photoId: "1", + isPermament:true, + dateCreated:new Date() } this.authService.register(user) diff --git a/frontend/src/app/_pages/profile/profile.component.ts b/frontend/src/app/_pages/profile/profile.component.ts index ae9fb12c..fdcd347c 100644 --- a/frontend/src/app/_pages/profile/profile.component.ts +++ b/frontend/src/app/_pages/profile/profile.component.ts @@ -28,6 +28,8 @@ export class ProfileComponent implements OnInit { newPass2: string = ''; photoId: string = ''; photoPath: string = ''; + isPermament:boolean=false; + dateCreated:Date=new Date(); wrongPassBool: boolean = false; wrongNewPassBool: boolean = false; @@ -60,6 +62,9 @@ export class ProfileComponent implements OnInit { this.firstName = this.user.firstName; this.lastName = this.user.lastName; this.photoId = this.user.photoId; + this.dateCreated=this.user.dateCreated; + this.isPermament=this.user.isPermament; + for (let i = 0; i < this.pictures.length; i++) { if (this.pictures[i].photoId.toString() === this.photoId) { @@ -81,7 +86,9 @@ export class ProfileComponent implements OnInit { password: this.user.password, firstName: this.firstName, lastName: this.lastName, - photoId: this.photoId + photoId: this.photoId, + isPermament:this.isPermament, + dateCreated:this.dateCreated } this.userInfoService.changeUserInfo(editedUser).subscribe((response: any) =>{ -- cgit v1.2.3 From 94f9ef8070402658cc116c2fd4963042111d3c33 Mon Sep 17 00:00:00 2001 From: Ivan Ljubisavljevic Date: Thu, 5 May 2022 14:02:34 +0200 Subject: Sredjena responzivnost na Arhiva i Napravi eksperiment stranici kod dodadavanja dataseta #116 --- .../form-dataset/form-dataset.component.css | 22 +++++++++++--------- .../form-dataset/form-dataset.component.html | 24 ++++++++-------------- 2 files changed, 20 insertions(+), 26 deletions(-) (limited to 'frontend') diff --git a/frontend/src/app/_elements/form-dataset/form-dataset.component.css b/frontend/src/app/_elements/form-dataset/form-dataset.component.css index 953daa0c..079711d0 100644 --- a/frontend/src/app/_elements/form-dataset/form-dataset.component.css +++ b/frontend/src/app/_elements/form-dataset/form-dataset.component.css @@ -5,25 +5,27 @@ } .topBar { + display: table; width: 100%; - margin: 1rem; - align-items: flex-start; + height: 100px; + margin-left: 1.5%; + margin-top: 1.5% ; +} +.kolona{ + float: left; + margin-left: 20px; } - .topBar label{ font-size: 30px; } .topBar mat-form-field{ width: 250px; + margin: 0; } -.toptop{ - margin-left: 1.5%; - width: 50%; -} - -.fileButton{ - margin-top: 10px; +.fileButton button{ + height: 51px; + width: 250px; } .file-container { diff --git a/frontend/src/app/_elements/form-dataset/form-dataset.component.html b/frontend/src/app/_elements/form-dataset/form-dataset.component.html index 281f9c05..055c3fd3 100644 --- a/frontend/src/app/_elements/form-dataset/form-dataset.component.html +++ b/frontend/src/app/_elements/form-dataset/form-dataset.component.html @@ -1,18 +1,16 @@
-
+
-
-
+
-
+
-
Naziv @@ -22,10 +20,9 @@ Naziv je obavezan -
-
+
Delimiter @@ -35,17 +32,12 @@
-
- -
-
-
- - -
-
+ +
+ +
-- cgit v1.2.3