change ugly checkbox to a list element that doesn't look too much out of place

This commit is contained in:
Henry Jameson 2022-08-24 20:24:21 +03:00
parent cf714c2756
commit 8c48a56a89
2 changed files with 15 additions and 7 deletions

View file

@ -96,14 +96,21 @@
:show-pin="editMode || forceEditMode"
:item="item"
/>
<div
<li
v-if="!forceEditMode && currentUser"
class="panel-footer"
>
<Checkbox v-model="editMode">
{{ $t('nav.edit_pinned') }}
</Checkbox>
</div>
<button
class="menu-item button-unstyled"
@click="toggleEditMode"
>
<FAIcon
fixed-width
class="fa-scale-110"
:icon="editMode ? 'check' : 'wrench'"
/>
{{ editMode ? $t('nav.edit_finish') : $t('nav.edit_pinned') }}
</button>
</li>
</ul>
</div>
</div>

View file

@ -156,7 +156,8 @@
"chats": "Chats",
"lists": "Lists",
"edit_nav_mobile": "Customize navigation bar",
"edit_pinned": "Edit pinned items"
"edit_pinned": "Edit pinned items",
"edit_finish": "Done editing"
},
"notifications": {
"broken_favorite": "Unknown status, searching for it…",