From f129b363c7bfb4ff7dadba805116a241bda72de4 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Thu, 4 Apr 2019 00:13:09 -0700 Subject: [PATCH] add list item selection and action popups --- .../src/components/CategoryDeleteDialog.vue | 55 +++++++++++++++ ...tegoryPopup.vue => CategoryInfoDialog.vue} | 0 cateditor/src/components/FancyList.vue | 68 +++++++++++++------ 3 files changed, 102 insertions(+), 21 deletions(-) create mode 100644 cateditor/src/components/CategoryDeleteDialog.vue rename cateditor/src/components/{CategoryPopup.vue => CategoryInfoDialog.vue} (100%) diff --git a/cateditor/src/components/CategoryDeleteDialog.vue b/cateditor/src/components/CategoryDeleteDialog.vue new file mode 100644 index 0000000..cf5f7e6 --- /dev/null +++ b/cateditor/src/components/CategoryDeleteDialog.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/cateditor/src/components/CategoryPopup.vue b/cateditor/src/components/CategoryInfoDialog.vue similarity index 100% rename from cateditor/src/components/CategoryPopup.vue rename to cateditor/src/components/CategoryInfoDialog.vue diff --git a/cateditor/src/components/FancyList.vue b/cateditor/src/components/FancyList.vue index 82ecd70..0cb7463 100644 --- a/cateditor/src/components/FancyList.vue +++ b/cateditor/src/components/FancyList.vue @@ -3,23 +3,25 @@ - + Categories add - +
- + - - - drag_handle - + :class="listItemClasses(item.id, hover)" + @click="selectCategory(item.id)" + > + @@ -27,14 +29,14 @@ - - info - - - - - delete - + + + info + + + delete + + @@ -48,7 +50,8 @@ - + + @@ -57,12 +60,14 @@