diff --git a/src/ui_ng/src/app/log/audit-log.component.html b/src/ui_ng/src/app/log/audit-log.component.html index 39e2b726e..d787c1cf5 100644 --- a/src/ui_ng/src/app/log/audit-log.component.html +++ b/src/ui_ng/src/app/log/audit-log.component.html @@ -14,7 +14,11 @@
diff --git a/src/ui_ng/src/app/project/create-project/create-project.component.html b/src/ui_ng/src/app/project/create-project/create-project.component.html index 97f838bb2..48117cbc4 100644 --- a/src/ui_ng/src/app/project/create-project/create-project.component.html +++ b/src/ui_ng/src/app/project/create-project/create-project.component.html @@ -4,10 +4,10 @@ diff --git a/src/ui_ng/src/app/project/create-project/create-project.css b/src/ui_ng/src/app/project/create-project/create-project.css index 526c33101..0bcac82e9 100644 --- a/src/ui_ng/src/app/project/create-project/create-project.css +++ b/src/ui_ng/src/app/project/create-project/create-project.css @@ -1,12 +1,3 @@ -.inline-help-public { - color: #CCCCCC; - font-size: 12px; - line-height: 1.5em; - letter-spacing: 0.01em; - margin-top: 0; - padding: 0 14px; -} - .form-group-label-override { font-size: 14px; font-weight: 400; diff --git a/src/ui_ng/src/app/project/member/member.component.css b/src/ui_ng/src/app/project/member/member.component.css index c782e3827..ab3bc903f 100644 --- a/src/ui_ng/src/app/project/member/member.component.css +++ b/src/ui_ng/src/app/project/member/member.component.css @@ -5,8 +5,4 @@ .option-right { padding-right: 16px; margin-top: 18px; -} - -.datagrid-foot { - margin-bottom: 0.5px; } \ No newline at end of file diff --git a/src/ui_ng/src/app/project/member/member.component.html b/src/ui_ng/src/app/project/member/member.component.html index 78ba04ea8..7f36d7639 100644 --- a/src/ui_ng/src/app/project/member/member.component.html +++ b/src/ui_ng/src/app/project/member/member.component.html @@ -19,9 +19,9 @@ {{'MEMBER.ROLE' | translate}} - - - + + + {{m.username}} diff --git a/src/ui_ng/src/app/project/member/member.component.ts b/src/ui_ng/src/app/project/member/member.component.ts index a69ac692c..494dfcb4d 100644 --- a/src/ui_ng/src/app/project/member/member.component.ts +++ b/src/ui_ng/src/app/project/member/member.component.ts @@ -111,8 +111,8 @@ export class MemberComponent implements OnInit, OnDestroy { ngOnInit() { //Get projectId from route params snapshot. this.projectId = +this.route.snapshot.parent.params['id']; - this.currentUser = this.session.getCurrentUser(); //Get current user from registered resolver. + this.currentUser = this.session.getCurrentUser(); let resolverData = this.route.snapshot.parent.data; if(resolverData) { this.hasProjectAdminRole = (resolverData['projectResolver']).has_project_admin_role; diff --git a/src/ui_ng/src/app/project/project-detail/project-detail.component.css b/src/ui_ng/src/app/project/project-detail/project-detail.component.css index 25f27c693..90f5add5f 100644 --- a/src/ui_ng/src/app/project/project-detail/project-detail.component.css +++ b/src/ui_ng/src/app/project/project-detail/project-detail.component.css @@ -7,6 +7,10 @@ background-color: #fafafa; } +.subnav .nav { + padding-left: 0; +} + .role-label { color: #CCCCCC; font-size: 14px; diff --git a/src/ui_ng/src/app/project/project.component.html b/src/ui_ng/src/app/project/project.component.html index e2b82e968..ddc4aed0c 100644 --- a/src/ui_ng/src/app/project/project.component.html +++ b/src/ui_ng/src/app/project/project.component.html @@ -13,7 +13,7 @@
- diff --git a/src/ui_ng/src/app/replication/replication-management/replication-management.component.css b/src/ui_ng/src/app/replication/replication-management/replication-management.component.css index 0286e4e83..fd8cfb74e 100644 --- a/src/ui_ng/src/app/replication/replication-management/replication-management.component.css +++ b/src/ui_ng/src/app/replication/replication-management/replication-management.component.css @@ -5,4 +5,8 @@ .sub-nav-bg-color { background-color: #fafafa; +} + +.subnav .nav { + padding-left: 0; } \ No newline at end of file diff --git a/src/ui_ng/src/app/replication/replication.component.html b/src/ui_ng/src/app/replication/replication.component.html index ac6a8e8f8..6bb7c5708 100644 --- a/src/ui_ng/src/app/replication/replication.component.html +++ b/src/ui_ng/src/app/replication/replication.component.html @@ -1,58 +1,50 @@
-
-
-
- - -
-
- - - - - - - - -
-
+
+
+
+ + +
+
+
+ +
+ + + + +
+
- +
-
-
{{'REPLICATION.REPLICATION_JOBS' | translate}}
-
- - - - - -
+
+
{{'REPLICATION.REPLICATION_JOBS' | translate}}
+
+ + + + +
-
- - - - -
- - -
+
+
+
+
+
+ + +
+
- +
\ No newline at end of file diff --git a/src/ui_ng/src/app/replication/replication.component.ts b/src/ui_ng/src/app/replication/replication.component.ts index 1392332e7..903408c59 100644 --- a/src/ui_ng/src/app/replication/replication.component.ts +++ b/src/ui_ng/src/app/replication/replication.component.ts @@ -20,6 +20,7 @@ import { MessageHandlerService } from '../shared/message-handler/message-handler import { ReplicationService } from './replication.service'; +import { SessionUser } from '../shared/session-user'; import { Policy } from './policy'; import { Job } from './job'; import { Target } from './target'; @@ -27,13 +28,13 @@ import { Target } from './target'; import { State } from 'clarity-angular'; const ruleStatus = [ - { 'key': '', 'description': 'REPLICATION.ALL_STATUS'}, + { 'key': 'all', 'description': 'REPLICATION.ALL_STATUS'}, { 'key': '1', 'description': 'REPLICATION.ENABLED'}, { 'key': '0', 'description': 'REPLICATION.DISABLED'} ]; const jobStatus = [ - { 'key': '', 'description': 'REPLICATION.ALL' }, + { 'key': 'all', 'description': 'REPLICATION.ALL' }, { 'key': 'pending', 'description': 'REPLICATION.PENDING' }, { 'key': 'running', 'description': 'REPLICATION.RUNNING' }, { 'key': 'error', 'description': 'REPLICATION.ERROR' }, @@ -62,7 +63,7 @@ class SearchOption { styleUrls: ['./replication.component.css'] }) export class ReplicationComponent implements OnInit { - + projectId: number; search: SearchOption; @@ -92,7 +93,7 @@ export class ReplicationComponent implements OnInit { constructor( private messageHandlerService: MessageHandlerService, private replicationService: ReplicationService, - private route: ActivatedRoute) { + private route: ActivatedRoute) { } ngOnInit(): void { @@ -171,9 +172,9 @@ export class ReplicationComponent implements OnInit { if(policy) { this.search.policyId = policy.id; this.search.repoName = ''; - this.search.status = '' + this.search.status = ''; this.currentJobSearchOption = 0; - this.currentJobStatus = { 'key': '', 'description': 'REPLICATION.ALL'}; + this.currentJobStatus = { 'key': 'all', 'description': 'REPLICATION.ALL' }; this.fetchPolicyJobs(); } } @@ -183,19 +184,28 @@ export class ReplicationComponent implements OnInit { this.retrievePolicies(); } - doFilterPolicyStatus(status: string) { - this.currentRuleStatus = this.ruleStatus.find(r=>r.key === status); - if(status.trim() === '') { - this.changedPolicies = this.policies; - } else { - this.changedPolicies = this.policies.filter(policy=>policy.enabled === +this.currentRuleStatus.key); + doFilterPolicyStatus($event: any) { + if ($event && $event.target && $event.target["value"]) { + let status = $event.target["value"]; + this.currentRuleStatus = this.ruleStatus.find(r=>r.key === status); + if(this.currentRuleStatus.key === 'all') { + this.changedPolicies = this.policies; + } else { + this.changedPolicies = this.policies.filter(policy=>policy.enabled === +this.currentRuleStatus.key); + } } } - doFilterJobStatus(status: string) { - this.currentJobStatus = this.jobStatus.find(r=>r.key === status); - this.search.status = status; - this.doSearchJobs(this.search.repoName); + doFilterJobStatus($event: any) { + if ($event && $event.target && $event.target["value"]) { + let status = $event.target["value"]; + this.currentJobStatus = this.jobStatus.find(r=>r.key === status); + if(this.currentJobStatus.key === 'all') { + status = ''; + } + this.search.status = status; + this.doSearchJobs(this.search.repoName); + } } doSearchJobs(repoName: string) {