commit: 8c48a56a899aab57246fcfde0a28c1712de8b9da
parent cf714c2756ac0b5981c269360c2024ab45da5d97
Author: Henry Jameson <me@hjkos.com>
Date: Wed, 24 Aug 2022 20:24:21 +0300
change ugly checkbox to a list element that doesn't look too much out of place
Diffstat:
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue
@@ -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>
diff --git a/src/i18n/en.json b/src/i18n/en.json
@@ -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…",