Change register button location
This commit is contained in:
parent
b23e5c6660
commit
2519afae6a
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"vsicons.presets.angular": true,
|
||||
"skipRefreshExplorerOnWindowFocus": true,
|
||||
"angular.log": "verbose"
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ import { RolesService } from './role-db.service';
|
|||
exports: [RolesService],
|
||||
})
|
||||
export class RolesModule implements OnModuleInit {
|
||||
private readonly logger = new Logger('RolesModule');
|
||||
private readonly logger = new Logger(RolesModule.name);
|
||||
|
||||
constructor(
|
||||
private readonly rolesService: RolesService,
|
||||
|
@ -28,7 +28,7 @@ export class RolesModule implements OnModuleInit {
|
|||
// Nuking roles in dev environment makes testing easier
|
||||
// This ensures that the roles are always started with their default permissions
|
||||
if (!this.hostConfig.isProduction()) {
|
||||
await this.nukeRoles();
|
||||
//await this.nukeRoles();
|
||||
}
|
||||
|
||||
await this.ensureSystemRolesExist();
|
||||
|
|
|
@ -66,6 +66,10 @@ export class HeaderComponent implements OnInit {
|
|||
this.router.navigate(['/user/login']);
|
||||
}
|
||||
|
||||
doRegister() {
|
||||
this.router.navigate(['/user/register']);
|
||||
}
|
||||
|
||||
async doLogout() {
|
||||
const user = await this.userService.logout();
|
||||
if (HasFailed(user)) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</ngx-dropzone>
|
||||
|
||||
<div class="centered" *ngIf="!canUpload">
|
||||
<h1><a routerLink="/user/login">Please Log In</a></h1>
|
||||
<h1><a routerLink="/user/login">Please log in</a></h1>
|
||||
<p>You do not yet have permission to upload</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
</button>
|
||||
<button
|
||||
*ngIf="showRegister"
|
||||
mat-raised-button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
class="mx-2"
|
||||
(click)="onRegister()"
|
||||
|
|
|
@ -56,12 +56,9 @@
|
|||
</div>
|
||||
|
||||
<div class="col-12 py-2">
|
||||
<button mat-raised-button color="accent" class="mx-2" type="submit">
|
||||
REGISTER
|
||||
</button>
|
||||
<button
|
||||
*ngIf="showLogin"
|
||||
mat-raised-button
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
class="mx-2"
|
||||
(click)="onLogin()"
|
||||
|
@ -69,6 +66,9 @@
|
|||
>
|
||||
LOGIN
|
||||
</button>
|
||||
<button mat-flat-button color="accent" class="mx-2" type="submit">
|
||||
REGISTER
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"src/app/**/*.ts",
|
||||
"src/app/util/qoi/qoi-encode.ts.disabled"
|
||||
"src/app/**/*.html",
|
||||
],
|
||||
"exclude": ["src/**/*.worker.ts", "src/**/*.exclude.ts"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue