-
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.
feat: make user Alias unique on create - prevent accidentally double … (
#144) …creation of a player
- Loading branch information
Showing
19 changed files
with
2,077 additions
and
77 deletions.
There are no files selected for viewing
34 changes: 0 additions & 34 deletions
34
src/client/src/app/components/users/user-created-dialog/user-created-dialog.component.html
This file was deleted.
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
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
46 changes: 46 additions & 0 deletions
46
src/client/src/app/components/users/user-welcome-dialog/user-welcome-dialog.component.html
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,46 @@ | ||
<p-dialog | ||
[visible]="visible()" | ||
(visibleChange)="visible.set($event)" | ||
[modal]="true" | ||
[draggable]="false" | ||
[resizable]="false" | ||
> | ||
<ng-template pTemplate="header"> | ||
<h2 class="max-w-72 sm:max-w-none"> | ||
{{ translations.users_userWelcomeDialog_title() | interpolate: user() }} | ||
</h2> | ||
</ng-template> | ||
@if (isLoading()) { | ||
<div class="flex flex-row justify-center"> | ||
<p-progressSpinner class="m-4 self-center" styleClass="h-16 w-16" strokeWidth="4" /> | ||
</div> | ||
} @else { | ||
<div class="flex flex-col items-end gap-2"> | ||
<div class="grid grid-cols-1 gap-2 sm:grid-cols-2"> | ||
<p-button | ||
styleClass="w-full" | ||
[icon]="'i-[mdi--text-account]'" | ||
[label]="translations.users_userWelcomeDialog_copyWelcomeMessage()" | ||
(onClick)="copyWelcomeMessage()" | ||
/> | ||
@if (loginToken(); as loginToken) { | ||
<p-button | ||
styleClass="w-full" | ||
[icon]="'i-[mdi--lock]'" | ||
[label]="translations.users_userWelcomeDialog_copyPassword()" | ||
(onClick)="copyPassword(loginToken)" | ||
/> | ||
} | ||
</div> | ||
</div> | ||
} | ||
<ng-template pTemplate="footer"> | ||
<p-button | ||
styleClass="w-full" | ||
[icon]="'i-[mdi--check]'" | ||
[label]="translations.shared_done()" | ||
(onClick)="visible.set(false)" | ||
[text]="true" | ||
/> | ||
</ng-template> | ||
</p-dialog> |
41 changes: 34 additions & 7 deletions
41
...d-dialog/user-created-dialog.component.ts → ...e-dialog/user-welcome-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
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
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.