Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Improve settings page

Smaug67393bf60a158ff2
diff --git a/frontend/app/pages/dashboard/settings/_views/security.vue b/frontend/app/pages/dashboard/settings/_views/security.vue
index 04b1d705..897adff8 100644
--- a/frontend/app/pages/dashboard/settings/_views/security.vue
+++ b/frontend/app/pages/dashboard/settings/_views/security.vue
@@ -46,12 +46,12 @@
<input id="password" v-model="passwordValue" type="password" required />
</div>
<div class="form-group">
- <span style="display: flex"
+ <span style="display: flex; align-items: center"
><label for="password_confirm">Confirm password</label> <span v-if="err_password_not_match" class="err"> Password do not match !</span></span
>
<input id="password_confirm" v-model="passwordConfirmValue" type="password" required />
</div>
- <AppButton type="danger">Change password</AppButton>
+ <AppButton type="primary">Change password</AppButton>
</form>
<h3>Danger</h3>
<div>
@@ -65,7 +65,17 @@
You can delete your account. <br />
Be careful, if you delete your account, you will lose all your data and you will not be able to recover it.
<br />
- <strong>This action is irreversible.</strong>
+ <strong>By deleting your account you will remove:</strong>
+ <ul>
+ <li>All your files and folders</li>
+ <li>All your uploads</li>
+ <li>All your shares</li>
+ <li>All your account data (preferences, profile...)</li>
+ </ul>
+ <p>
+ You can <NuxtLink to="/dashboard/settings?p=backup" style="text-decoration: underline; color: var(--primary)">export your data</NuxtLink> before
+ deleting your account.
+ </p>
</div>
<AppButton type="danger" @click="openDeleteModal">Delete account</AppButton>
</div>
diff --git a/frontend/app/pages/dashboard/settings/index.vue b/frontend/app/pages/dashboard/settings/index.vue
index 704f82ca..a1ddb06d 100644
--- a/frontend/app/pages/dashboard/settings/index.vue
+++ b/frontend/app/pages/dashboard/settings/index.vue
@@ -83,7 +83,7 @@ const close = () => router.push(!routeBeforeEnter.value?.startsWith('/dashboard/
border-bottom-left-radius: 8px;
border-top-left-radius: 8px;
gap: 1rem;
-
+ overflow-y: auto;
span {
font-size: 0.9rem;
font-weight: 500;
@@ -92,15 +92,15 @@ const close = () => router.push(!routeBeforeEnter.value?.startsWith('/dashboard/
a {
display: flex;
- margin: 0.5rem;
- border-radius: 4px;
+ margin: 0.2rem;
+ padding: 0.2rem 0.4rem;
+ border-radius: 6px;
color: inherit;
align-items: center;
gap: 0.5rem;
text-decoration: none;
- &:hover,
- &.active {
+ &:hover {
background-color: var(--bg-contrast-2);
}
}