Added a demo mode to show or hide instance warnings that data is deleted

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-11-21 16:07:43 +01:00
parent 119cb5f71d
commit a53100ef6e
11 changed files with 21 additions and 4 deletions

View File

@@ -24,7 +24,7 @@
{{ $t('No user account with this email was found. Maybe you made a typo?') }}
</span>
<!-- Warning that we delete everything every now and then -->
<span v-if="error === LoginError.USER_DOES_NOT_EXIST">
<span v-if="error === LoginError.USER_DOES_NOT_EXIST && config.demoMode">
{{ $t('User accounts and every other data is currently deleted every 48 hours, so you may want to register again.') }}
</span>
</b-message>
@@ -203,4 +203,4 @@ export default class Login extends Vue {
.container .columns {
margin: 1rem auto 3rem;
}
</style>
</style>