ui: Add a link to change password through issue report
This commit is contained in:
parent
00f7399170
commit
9ac09278f6
2 changed files with 31 additions and 0 deletions
27
frontend/ui/src/lib/components/TeamChangePassword.svelte
Normal file
27
frontend/ui/src/lib/components/TeamChangePassword.svelte
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
Button,
|
||||||
|
Card,
|
||||||
|
CardHeader,
|
||||||
|
CardBody,
|
||||||
|
Icon,
|
||||||
|
} from 'sveltestrap';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Card class="mb-3 border-warning">
|
||||||
|
<CardHeader class="bg-warning text-light">
|
||||||
|
<Icon name="incognito" />
|
||||||
|
Changer de mot de passe
|
||||||
|
</CardHeader>
|
||||||
|
<CardBody>
|
||||||
|
<p>
|
||||||
|
Si vous souhaitez changer de mot de passe :
|
||||||
|
</p>
|
||||||
|
<Button
|
||||||
|
href="issues?fill-issue"
|
||||||
|
color="warning"
|
||||||
|
>
|
||||||
|
Contactez-nous !
|
||||||
|
</Button>
|
||||||
|
</CardBody>
|
||||||
|
</Card>
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
import ScoreGrid from '$lib/components/ScoreGrid.svelte';
|
import ScoreGrid from '$lib/components/ScoreGrid.svelte';
|
||||||
import TeamChangeName from '$lib/components/TeamChangeName.svelte';
|
import TeamChangeName from '$lib/components/TeamChangeName.svelte';
|
||||||
|
import TeamChangePassword from '$lib/components/TeamChangePassword.svelte';
|
||||||
import TeamMembers from '$lib/components/TeamMembers.svelte';
|
import TeamMembers from '$lib/components/TeamMembers.svelte';
|
||||||
|
|
||||||
import { my } from '$lib/stores/my.js';
|
import { my } from '$lib/stores/my.js';
|
||||||
|
@ -33,6 +34,9 @@
|
||||||
{#if !$settings.denyNameChange}
|
{#if !$settings.denyNameChange}
|
||||||
<TeamChangeName />
|
<TeamChangeName />
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if $settings.acceptNewIssue}
|
||||||
|
<TeamChangePassword />
|
||||||
|
{/if}
|
||||||
</Col>
|
</Col>
|
||||||
<Col md>
|
<Col md>
|
||||||
<Card>
|
<Card>
|
||||||
|
|
Reference in a new issue