Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance(profile): 相互リンク機能の設定画面のデザイン修正 #690

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2272,7 +2272,7 @@ _profile:
addMutualLinkSection: "Add section"
sectionName: "Section name"
sectionNameNoneDescription: "Do not display the section name"
sectionNameNone: "Hide section name"
sectionNameNone: "Section without name"
_exportOrImport:
allNotes: "All notes"
favoritedNotes: "Favorite notes"
Expand Down
2 changes: 1 addition & 1 deletion locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8859,7 +8859,7 @@ export interface Locale extends ILocale {
*/
"sectionNameNoneDescription": string;
/**
* セクション名を表示しない
* 名前が表示されないセクション
*/
"sectionNameNone": string;
};
Expand Down
2 changes: 1 addition & 1 deletion locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,7 @@ _profile:
addMutualLinkSection: "セクションを追加"
sectionName: "セクション名"
sectionNameNoneDescription: "セクション名を表示しないようにする"
sectionNameNone: "セクション名を表示しない"
sectionNameNone: "名前が表示されないセクション"

_exportOrImport:
allNotes: "全てのノート"
Expand Down
2 changes: 1 addition & 1 deletion locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ _profile:
addMutualLinkSection: "섹션 추가"
sectionName: "섹션 이름"
sectionNameNoneDescription: "섹션 이름이 표시되지 않도록 합니다."
sectionNameNone: "섹션 이름을 숨기기"
sectionNameNone: "이름이 표시되지 않는 섹션"
_exportOrImport:
allNotes: "모든 노트"
favoritedNotes: "즐겨찾기한 노트"
Expand Down
9 changes: 5 additions & 4 deletions packages/frontend/src/pages/settings/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkFolder>
<template #label>{{ sectionElement.name || i18n.ts._profile.sectionNameNone }}</template>

<div :class="$style.metadataMargin">
<MkInput v-model="sectionElement.name" :disabled="sectionElement.none" :placeholder="i18n.ts._profile.sectionName" :max="32"></MkInput>
<MkSwitch v-model="sectionElement.none" @update:modelValue="()=>{sectionElement.name = null}">{{ i18n.ts._profile.sectionNameNoneDescription }}</MkSwitch>
<div class="_gaps_s" :class="$style.metadataMargin">
<MkInput v-if="sectionElement.name !== null" v-model="sectionElement.name" :placeholder="i18n.ts._profile.sectionName" :max="32"></MkInput>
<MkSwitch v-model="sectionElement.none" @update:modelValue="()=>{ sectionElement.none ? sectionElement.name = null : sectionElement.name = 'New Section' }">{{ i18n.ts._profile.sectionNameNoneDescription }}</MkSwitch>
<MkButton inline style="margin-right: 8px;" :disabled="sectionElement.mutualLinks.length >= $i.policies.mutualLinkLimit" @click="addMutualLinks(sectionIndex)"><i class="ti ti-plus"></i> {{ i18n.ts._profile.addMutualLink }}</MkButton>
</div>

<Sortable
v-model="sectionElement.mutualLinks"
class="_gaps_s"
Expand Down Expand Up @@ -248,7 +249,7 @@ function addMutualLinks(index:number) {

function addMutualLinkSections() {
mutualLinkSections.value.push({
name: null,
name: 'New Section',
mutualLinks: [],
});
}
Expand Down
Loading