From e6c2a8d9653ffde924632ca2f260c3a8cddc14ed Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 11 Sep 2020 00:15:04 +0200
Subject: viewer: item display order
github: resolves #28
---
viewer/src/components/LdCommandSort.vue | 57 +++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 viewer/src/components/LdCommandSort.vue
(limited to 'viewer/src/components/LdCommandSort.vue')
diff --git a/viewer/src/components/LdCommandSort.vue b/viewer/src/components/LdCommandSort.vue
new file mode 100644
index 0000000..1d2eac3
--- /dev/null
+++ b/viewer/src/components/LdCommandSort.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+ {{ sort.name }}
+
+
+
+
+
+
+
--
cgit v1.2.3
From f89ed0bd94ea570d9e6533301783d13b13033db0 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 11 Sep 2020 20:10:56 +0200
Subject: viewer: PR #238 code review changes
---
viewer/src/components/LdCommandSort.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'viewer/src/components/LdCommandSort.vue')
diff --git a/viewer/src/components/LdCommandSort.vue b/viewer/src/components/LdCommandSort.vue
index 1d2eac3..1eef5d3 100644
--- a/viewer/src/components/LdCommandSort.vue
+++ b/viewer/src/components/LdCommandSort.vue
@@ -25,7 +25,7 @@
- {{ sort.name }}
+ {{ sort.name }}
@@ -38,7 +38,7 @@ import ItemSortFn from "@/services/itemSortFn";
@Component
export default class LdCommandSort extends Vue {
readonly SORTS = [
- { name: this.$t("command.sort.byName"), fn: ItemSortFn.sortByName },
+ { name: this.$t("command.sort.byNameAsc"), fn: ItemSortFn.sortByNameAsc },
{ name: this.$t("command.sort.byDateDesc"), fn: ItemSortFn.sortByDateDesc },
];
@@ -51,7 +51,7 @@ export default class LdCommandSort extends Vue {
--
cgit v1.2.3
From 96ed5e6583a7f03d4ea7fa0512e66fffb656cc6e Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 12 Sep 2020 06:34:58 +0200
Subject: viewer: make default sort order configurable
github: resolves #239
---
viewer/src/components/LdCommandSort.vue | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
(limited to 'viewer/src/components/LdCommandSort.vue')
diff --git a/viewer/src/components/LdCommandSort.vue b/viewer/src/components/LdCommandSort.vue
index 1eef5d3..a412afc 100644
--- a/viewer/src/components/LdCommandSort.vue
+++ b/viewer/src/components/LdCommandSort.vue
@@ -31,19 +31,28 @@
--
cgit v1.2.3
From 26210d495aed813baac1095b5c7a7c7879d2d206 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 25 Sep 2020 10:42:33 +0200
Subject: viewer: refactor how the available sorts are stored
github: resolves #259
---
viewer/src/components/LdCommandSort.vue | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
(limited to 'viewer/src/components/LdCommandSort.vue')
diff --git a/viewer/src/components/LdCommandSort.vue b/viewer/src/components/LdCommandSort.vue
index 30644c1..cfaa5c1 100644
--- a/viewer/src/components/LdCommandSort.vue
+++ b/viewer/src/components/LdCommandSort.vue
@@ -23,8 +23,8 @@
-
-
+
+
{{ sort.text }}
@@ -32,19 +32,18 @@
--
cgit v1.2.3