Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
d8d89867
Commit
d8d89867
authored
5 years ago
by
Emine Erbay
Committed by
Klaus-Dieter Quibeldey-Cirkel
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Make "Delete account" accessible"
parent
15622255
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/components/shared/_dialogs/delete-account/delete-account.component.ts
+21
-1
21 additions, 1 deletion
...hared/_dialogs/delete-account/delete-account.component.ts
with
21 additions
and
1 deletion
src/app/components/shared/_dialogs/delete-account/delete-account.component.ts
+
21
−
1
View file @
d8d89867
...
@@ -4,6 +4,8 @@ import { RoomEditComponent } from '../../../creator/_dialogs/room-edit/room-edit
...
@@ -4,6 +4,8 @@ import { RoomEditComponent } from '../../../creator/_dialogs/room-edit/room-edit
import
{
RoomService
}
from
'
../../../../services/http/room.service
'
;
import
{
RoomService
}
from
'
../../../../services/http/room.service
'
;
import
{
Room
}
from
'
../../../../models/room
'
;
import
{
Room
}
from
'
../../../../models/room
'
;
import
{
DialogConfirmActionButtonType
}
from
'
../../dialog/dialog-action-buttons/dialog-action-buttons.component
'
;
import
{
DialogConfirmActionButtonType
}
from
'
../../dialog/dialog-action-buttons/dialog-action-buttons.component
'
;
import
{
LiveAnnouncer
}
from
'
@angular/cdk/a11y
'
;
import
{
TranslateService
}
from
'
@ngx-translate/core
'
;
@
Component
({
@
Component
({
selector
:
'
app-delete-account
'
,
selector
:
'
app-delete-account
'
,
...
@@ -23,9 +25,12 @@ export class DeleteAccountComponent implements OnInit {
...
@@ -23,9 +25,12 @@ export class DeleteAccountComponent implements OnInit {
constructor
(
public
dialogRef
:
MatDialogRef
<
RoomEditComponent
>
,
constructor
(
public
dialogRef
:
MatDialogRef
<
RoomEditComponent
>
,
@
Inject
(
MAT_DIALOG_DATA
)
public
data
:
any
,
@
Inject
(
MAT_DIALOG_DATA
)
public
data
:
any
,
private
roomService
:
RoomService
)
{
}
private
roomService
:
RoomService
,
private
liveAnnouncer
:
LiveAnnouncer
,
private
translationService
:
TranslateService
,
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
announce
();
this
.
roomService
.
getCreatorRooms
().
subscribe
(
rooms
=>
{
this
.
roomService
.
getCreatorRooms
().
subscribe
(
rooms
=>
{
this
.
rooms
=
rooms
.
sort
((
a
,
b
)
=>
{
this
.
rooms
=
rooms
.
sort
((
a
,
b
)
=>
{
return
a
.
name
>
b
.
name
?
1
:
-
1
;
return
a
.
name
>
b
.
name
?
1
:
-
1
;
...
@@ -33,6 +38,21 @@ export class DeleteAccountComponent implements OnInit {
...
@@ -33,6 +38,21 @@ export class DeleteAccountComponent implements OnInit {
});
});
}
}
public
announce
()
{
const
lang
:
string
=
this
.
translationService
.
currentLang
;
// current live announcer content must be cleared before next read
this
.
liveAnnouncer
.
clear
();
if
(
lang
===
'
de
'
)
{
this
.
liveAnnouncer
.
announce
(
'
Willst du dein Konto mit allen Sitzungen unwiderruflich löschen?
'
,
'
assertive
'
);
}
else
{
this
.
liveAnnouncer
.
announce
(
'
Do you really want to irrevocably delete your account with the associated sessions?
'
,
'
assertive
'
);
}
}
close
(
type
:
string
):
void
{
close
(
type
:
string
):
void
{
this
.
dialogRef
.
close
(
type
);
this
.
dialogRef
.
close
(
type
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment