Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

refactor: update album form's password and visibility options

Ahmet Ömer04848cf4a854
diff --git a/app/pages/dashboard/albums.vue b/app/pages/dashboard/albums.vue
index af00cdd9..099c11df 100644
--- a/app/pages/dashboard/albums.vue
+++ b/app/pages/dashboard/albums.vue
@@ -746,20 +746,20 @@ const columns = computed<any[]>(() => [
/>
</UFormField>
- <UFormField
- :label="$t('dashboard.albums.form.isHidden')"
- name="isHidden"
- :hint="$t('dashboard.albums.form.isHiddenHint')"
- >
+ <UFormField name="isHidden">
<UCheckbox
v-model="formData.isHidden"
:label="$t('dashboard.albums.form.isHidden')"
+ :description="$t('dashboard.albums.form.isHiddenHint')"
/>
</UFormField>
- <UFormField :label="$t('dashboard.albums.form.passwordProtection')">
- <UCheckbox v-model="formData.passwordEnabled"
- :label="$t('dashboard.albums.form.passwordProtection')" />
+ <UFormField name="passwordEnabled">
+ <UCheckbox
+ v-model="formData.passwordEnabled"
+ :label="$t('dashboard.albums.form.passwordProtection')"
+ :description="$t('dashboard.albums.form.passwordProtectionHint')"
+ />
</UFormField>
<UFormField v-if="formData.passwordEnabled"
:label="$t('dashboard.albums.form.password')" name="password"
diff --git a/i18n/locales/en.json b/i18n/locales/en.json
index 01e131ef..587235a1 100644
--- a/i18n/locales/en.json
+++ b/i18n/locales/en.json
@@ -869,6 +869,7 @@
"isHidden": "Hide album",
"isHiddenHint": "Photos in hidden albums are not shown on the home page",
"passwordProtection": "Password protection",
+ "passwordProtectionHint": "A password will be required to access this album",
"password": "Password",
"passwordPlaceholder": "Enter a password",
"passwordKeepHint": "Leave blank to keep the current password",
diff --git a/i18n/locales/ja.json b/i18n/locales/ja.json
index bc0d7e72..0e5f9cb6 100644
--- a/i18n/locales/ja.json
+++ b/i18n/locales/ja.json
@@ -795,6 +795,7 @@
"isHidden": "アルバムを非表示",
"isHiddenHint": "非表示のアルバム内の写真はホームページに表示されません",
"passwordProtection": "パスワード保護",
+ "passwordProtectionHint": "このアルバムにアクセスするにはパスワードが必要になります",
"password": "パスワード",
"passwordPlaceholder": "パスワードを入力",
"passwordKeepHint": "現在のパスワードを変更しない場合は空欄にしてください",
diff --git a/i18n/locales/ru.json b/i18n/locales/ru.json
index 86eb446b..1f95af39 100644
--- a/i18n/locales/ru.json
+++ b/i18n/locales/ru.json
@@ -868,6 +868,7 @@
"isHidden": "Скрыть альбом",
"isHiddenHint": "Фотографии из скрытых альбомов не отображаются на главной странице",
"passwordProtection": "Защита паролем",
+ "passwordProtectionHint": "Для доступа к этому альбому потребуется пароль",
"password": "Пароль",
"passwordPlaceholder": "Введите пароль",
"passwordKeepHint": "Оставьте поле пустым, чтобы сохранить текущий пароль",
diff --git a/i18n/locales/zh-Hans.json b/i18n/locales/zh-Hans.json
index d37982be..92acea1a 100644
--- a/i18n/locales/zh-Hans.json
+++ b/i18n/locales/zh-Hans.json
@@ -869,6 +869,7 @@
"isHidden": "隐藏相簿",
"isHiddenHint": "隐藏的相簿中的照片不会在首页展示",
"passwordProtection": "密码保护",
+ "passwordProtectionHint": "访问此相簿需要输入密码",
"password": "密码",
"passwordPlaceholder": "输入密码",
"passwordKeepHint": "留空以保留当前密码",
diff --git a/i18n/locales/zh-Hant-HK.json b/i18n/locales/zh-Hant-HK.json
index f7693db0..cb37409c 100644
--- a/i18n/locales/zh-Hant-HK.json
+++ b/i18n/locales/zh-Hant-HK.json
@@ -795,6 +795,7 @@
"isHidden": "隱藏相簿",
"isHiddenHint": "隱藏相簿中的照片不會在首頁顯示",
"passwordProtection": "密碼保護",
+ "passwordProtectionHint": "存取此相簿需要輸入密碼",
"password": "密碼",
"passwordPlaceholder": "輸入密碼",
"passwordKeepHint": "留空以保留目前密碼",
diff --git a/i18n/locales/zh-Hant-TW.json b/i18n/locales/zh-Hant-TW.json
index f028f1b5..a6e0381e 100644
--- a/i18n/locales/zh-Hant-TW.json
+++ b/i18n/locales/zh-Hant-TW.json
@@ -795,6 +795,7 @@
"isHidden": "隱藏相簿",
"isHiddenHint": "隱藏相簿中的照片不會在首頁顯示",
"passwordProtection": "密碼保護",
+ "passwordProtectionHint": "存取此相簿需要輸入密碼",
"password": "密碼",
"passwordPlaceholder": "輸入密碼",
"passwordKeepHint": "留空以保留目前密碼",