-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHIBUI-1062 Reorganized code, added action required tab
- Loading branch information
Showing
34 changed files
with
13,938 additions
and
14,271 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { LoadRoleRequest } from '../core/action/configuration.action'; | ||
|
||
import * as fromRoot from '../app.reducer'; | ||
import { Store } from '@ngrx/store'; | ||
|
||
@Component({ | ||
selector: 'admin-page', | ||
templateUrl: './admin.component.html', | ||
styleUrls: [] | ||
}) | ||
export class AdminComponent implements OnInit { | ||
constructor( | ||
private store: Store<fromRoot.State> | ||
) { } | ||
|
||
ngOnInit(): void { | ||
this.store.dispatch(new LoadRoleRequest()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<section class="section"> | ||
<div class="section-body border border-top-0 border-primary"> | ||
<div class="section-header bg-primary p-2 text-light"> | ||
<div class="row justify-content-between"> | ||
<div class="col-12"> | ||
<span class="lead" translate="label.user-access-request">User Access Request</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div *ngFor="let user of users$ | async"> | ||
<div class="p-3 bg-light border-light rounded m-3"> | ||
<div class="row align-items-center"> | ||
<div class="col-10"> | ||
<div class="row"> | ||
<div class="col text-right font-weight-bold" translate="label.user-id"> | ||
UserId: | ||
</div> | ||
<div class="col">{{ user.username }}</div> | ||
<div class="col text-right font-weight-bold" translate="label.email"> | ||
Email: | ||
</div> | ||
<div class="col">{{ user.emailAddress }}</div> | ||
</div> | ||
<div class="w-100 my-1"></div> | ||
<div class="row"> | ||
<div class="col text-right font-weight-bold" translate="label.name"> | ||
Name: | ||
</div> | ||
<div class="col">{{ user.firstName }} {{ user.lastName }}</div> | ||
<div class="col text-right font-weight-bold" translate="label.role"> | ||
Role: | ||
</div> | ||
<div class="col"> | ||
<select [name]="user.username" | ||
[ngModel]="user.role" | ||
class="form-control form-control-sm" | ||
disableValidation | ||
(change)="setUserRole(user, $event.target.value)"> | ||
<option *ngFor="let role of roles$ | async" [value]="role">{{ role }}</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-2 text-right"> | ||
<button class="btn btn-danger btn-sm" (click)="deleteUser(user.username)"> | ||
<i class="fa fa-trash fa-lg"></i> | ||
| ||
<span translate="label.delete-request"> | ||
Delete Request | ||
</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
import { UserManagementComponent } from './user-management.component'; | ||
|
||
@Component({ | ||
selector: 'access-request-component', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
templateUrl: './access-request.component.html', | ||
styleUrls: [] | ||
}) | ||
export class AccessRequestComponent extends UserManagementComponent {} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...component/delete-user-dialog.component.ts → ...component/delete-user-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
24 changes: 9 additions & 15 deletions
24
...n/container/admin-management.component.ts → ...in/component/user-management.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<access-request-component></access-request-component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
import { Store } from '@ngrx/store'; | ||
|
||
import * as fromRoot from '../../app.reducer'; | ||
|
||
import { LoadNewUsersRequest } from '../action/collection.action'; | ||
|
||
@Component({ | ||
selector: 'action-required-page', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
templateUrl: './action-required.component.html', | ||
styleUrls: [] | ||
}) | ||
export class ActionRequiredPageComponent { | ||
|
||
constructor( | ||
private store: Store<fromRoot.State> | ||
) { | ||
this.store.dispatch(new LoadNewUsersRequest()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<user-management></user-management> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
import { Store } from '@ngrx/store'; | ||
|
||
import * as fromRoot from '../../app.reducer'; | ||
|
||
import { LoadAdminRequest } from '../action/collection.action'; | ||
|
||
@Component({ | ||
selector: 'admin-management-page', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
templateUrl: './admin-management.component.html', | ||
styleUrls: [] | ||
}) | ||
export class AdminManagementPageComponent { | ||
|
||
constructor( | ||
private store: Store<fromRoot.State> | ||
) { | ||
this.store.dispatch(new LoadAdminRequest()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
ui/src/app/user/admin/reducer/index.ts → ui/src/app/admin/reducer/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.