Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 06d9ba7

Browse files
feat(#234): add a text regarding the fact that we do not delete automatically the decks yet
1 parent 57f81b4 commit 06d9ba7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

studio/src/app/modals/core/app-user-delete.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@ app-user-delete {
22
strong {
33
color: var(--ion-color-danger);
44
}
5+
6+
p {
7+
a {
8+
color: black;
9+
cursor: pointer;
10+
11+
&:hover {
12+
border-bottom-color: black;
13+
}
14+
}
15+
}
516
}
17+

studio/src/app/modals/core/app-user-delete.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {Component, Element, Listen, Prop, State, h} from '@stencil/core';
22
import {UserUtils} from '../../utils/core/user-utils';
3+
import {NavDirection, NavService} from '../../services/core/nav/nav.service';
34

45
@Component({
56
tag: 'app-user-delete',
@@ -17,8 +18,12 @@ export class AppUserDelete {
1718

1819
private inputUsername: string;
1920

21+
private navService: NavService;
22+
2023
async componentDidLoad() {
2124
history.pushState({modal: true}, null);
25+
26+
this.navService = NavService.getInstance();
2227
}
2328

2429
@Listen('popstate', { target: 'window' })
@@ -48,6 +53,15 @@ export class AppUserDelete {
4853
await (this.el.closest('ion-modal') as HTMLIonModalElement).dismiss(true);
4954
}
5055

56+
private async navigateContact() {
57+
await this.closeModal();
58+
59+
this.navService.navigate({
60+
url: '/contact',
61+
direction: NavDirection.FORWARD
62+
});
63+
}
64+
5165
render() {
5266
return [
5367
<ion-header>
@@ -63,6 +77,8 @@ export class AppUserDelete {
6377
<ion-content class="ion-padding">
6478
<p>This action cannot be undone. This will permanently delete your user <strong>{this.username}</strong>.</p>
6579

80+
<p>Note that we are not currently deleting your presentations automatically. If you wish to unpublish them, drop us a message on one of our <a onClick={() => this.navigateContact()}>contact</a> channels.</p>
81+
6682
<form onSubmit={(e: Event) => this.handleSubmit(e)}>
6783
<p class="ion-no-margin">Please type your username to confirm.</p>
6884

0 commit comments

Comments
 (0)