Skip to content

Commit

Permalink
Merge pull request #140 from tobiasKaminsky/settingsChanges
Browse files Browse the repository at this point in the history
update settings page
  • Loading branch information
tobiasKaminsky committed Jan 25, 2024
2 parents 35640b4 + 8e02dec commit 68f7bda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/ListCategoryNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
trailing-button-icon="close"
@trailing-button-click="newCategoryName = ''" />

<NcButton :aria-label="t('grocerylist', 'Add category {category}', { category: newCategoryName })" @click="addCategory">
<NcButton type="tertiary"
:aria-label="t('grocerylist', 'Add category {category}', { category: newCategoryName })"
@click="addCategory">
<template #icon>
<IconPlus :size="20" />
</template>
{{ t('grocerylist', 'Add') }}
</NcButton>
</div>
</template>
Expand Down
2 changes: 0 additions & 2 deletions src/views/ListSettings.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<div class="page-wrapper">
<h1>{{ t('grocerylist', 'Settings for list {list}', { list: listId }) }}</h1>
<h2>{{ t('grocerylist', 'Categories') }}</h2>

<NcEmptyContent v-if="loadingCategories" :name="t('grocerylist', 'Categories loading…')">
Expand All @@ -17,7 +16,6 @@
<ListCategory v-for="category in categories" :key="category.name" :category="category" />
</ul>

<h3>{{ t('grocerylist', 'Add a new category') }}</h3>
<ListCategoryNew :list-id="listId" />

<!-- <h2>{{ t('grocerylist', 'Shares') }}</h2>-->
Expand Down

0 comments on commit 68f7bda

Please sign in to comment.