diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-17 20:21:10 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-17 20:21:10 +0300 |
| commit | faefd05c03d20a892a47c27550fe6e23978993c7 (patch) | |
| tree | e14dd9f61571975eb56601810907c184404ca609 /src/components/lists | |
| parent | b4f4b370d406faf69be5c414ce394b608d8792f5 (diff) | |
create new list UI
Diffstat (limited to 'src/components/lists')
| -rw-r--r-- | src/components/lists/lists.js | 4 | ||||
| -rw-r--r-- | src/components/lists/lists.vue | 24 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/components/lists/lists.js b/src/components/lists/lists.js index 9aed37f7..56d68430 100644 --- a/src/components/lists/lists.js +++ b/src/components/lists/lists.js @@ -1,5 +1,4 @@ import ListsCard from '../lists_card/lists_card.vue' -import ListsNew from '../lists_new/lists_new.vue' const Lists = { data () { @@ -8,8 +7,7 @@ const Lists = { } }, components: { - ListsCard, - ListsNew + ListsCard }, computed: { lists () { diff --git a/src/components/lists/lists.vue b/src/components/lists/lists.vue index fcc56447..cb98b017 100644 --- a/src/components/lists/lists.vue +++ b/src/components/lists/lists.vue @@ -1,21 +1,15 @@ <template> - <div v-if="isNew"> - <ListsNew @cancel="cancelNewList" /> - </div> - <div - v-else - class="settings panel panel-default" - > + <div class="Lists panel panel-default"> <div class="panel-heading"> <div class="title"> {{ $t('lists.lists') }} </div> - <button - class="button-default" - @click="newList" + <router-link + :to="{ name: 'lists-edit' }" + class="button-default btn new-list-button" > {{ $t("lists.new") }} - </button> + </router-link> </div> <div class="panel-body"> <ListsCard @@ -29,3 +23,11 @@ </template> <script src="./lists.js"></script> + +<style lang="scss"> +.Lists { + .new-list-button { + padding: 0 0.5em; + } +} +</style> |
