# HG changeset patch # User Thomas Junk # Date 1544531632 -3600 # Node ID 15d736a402c92f6579c4502c70f93463144a1e6b # Parent 35f85da41fdb5791dd15154993c7df56f1da1c5b importqueue as collapsible diff -r 35f85da41fdb -r 15d736a402c9 client/package.json --- a/client/package.json Tue Dec 11 09:59:23 2018 +0100 +++ b/client/package.json Tue Dec 11 13:33:52 2018 +0100 @@ -41,7 +41,6 @@ "vue-clipboard2": "^0.2.1", "vue-color": "^2.6.0", "vue-highlightjs": "^1.3.3", - "vue-js-modal": "^1.3.27", "vue-js-toggle-button": "^1.3.0", "vue-router": "^3.0.2", "vue-snotify": "^3.2.1", diff -r 35f85da41fdb -r 15d736a402c9 client/src/components/admin/Importqueue.vue --- a/client/src/components/admin/Importqueue.vue Tue Dec 11 09:59:23 2018 +0100 +++ b/client/src/components/admin/Importqueue.vue Tue Dec 11 13:33:52 2018 +0100 @@ -48,30 +48,29 @@ - - - - - - - - - - - - - - - - - - - -
EnqueuedKindUserSignerState
{{ formatSurveyDate(job.enqueued) }}{{ job.kind }}{{ job.user }}{{ job.signer }}{{ job.state }}
+
+
+ Id +
+
+ Enqueued +
+
+ Kind +
+
+ User +
+
+ Signer +
+
+ State +
+
+
+ +
- -
- -
-
- - - - - - - - - - - - - - - -
Kind - Date - - Message
{{ entry.kind }}{{ formatSurveyDate(entry.time) }}{{ entry.message }}
-
-
@@ -132,10 +100,13 @@ import { displayError } from "../../lib/errors.js"; import { mapState } from "vuex"; import { HTTP } from "../../lib/http.js"; -import { formatSurveyDate } from "../../lib/date.js"; +import Importqueuedetail from "./Importqueuedetail"; export default { name: "importqueue", + components: { + Importqueuedetail + }, data() { return { searchQuery: "", @@ -143,21 +114,13 @@ failed: false, pending: false, rejected: false, - accepted: false, - entries: [], - sortAsc: true + accepted: false }; }, mounted() { this.loadQueue(); }, methods: { - formatSurveyDate(date) { - return formatSurveyDate(date); - }, - clearEntries() { - this.entries = []; - }, setFilter(name) { this[name] = !this[name]; const allSet = @@ -210,21 +173,6 @@ computed: { ...mapState("imports", ["imports"]), ...mapState("application", ["showSidebar"]), - sortedEntries() { - let sorted = this.entries.slice(); - sorted.sort((r1, r2) => { - let d1 = new Date(r1.time); - let d2 = new Date(r2.time); - if (d2 < d1) { - return !this.sortAsc ? -1 : 1; - } - if (d2 > d1) { - return !this.sortAsc ? 1 : -1; - } - return 0; - }); - return sorted; - }, sortIcon() { return this.sortAsc ? "sort-amount-down" : "sort-amount-up"; }, @@ -307,6 +255,35 @@ diff -r 35f85da41fdb -r 15d736a402c9 client/src/main.js --- a/client/src/main.js Tue Dec 11 09:59:23 2018 +0100 +++ b/client/src/main.js Tue Dec 11 13:33:52 2018 +0100 @@ -120,9 +120,7 @@ faWrench ); import ToggleButton from "vue-js-toggle-button"; -import VModal from "vue-js-modal"; -Vue.use(VModal); Vue.use(ToggleButton); Vue.component("font-awesome-icon", FontAwesomeIcon); diff -r 35f85da41fdb -r 15d736a402c9 client/yarn.lock --- a/client/yarn.lock Tue Dec 11 09:59:23 2018 +0100 +++ b/client/yarn.lock Tue Dec 11 13:33:52 2018 +0100 @@ -10768,11 +10768,6 @@ tsconfig "^7.0.0" vue-template-es2015-compiler "^1.6.0" -vue-js-modal@^1.3.27: - version "1.3.27" - resolved "https://registry.yarnpkg.com/vue-js-modal/-/vue-js-modal-1.3.27.tgz#c0733d439c9f3c0f0e6a271b3d85604d5328e039" - integrity sha512-w27jHJWTRlcA7qQLs3yM6mi2wFsMHdqHTfyTxO7ENOCInoBY2bIECpAZZ9e8mD8Ka39AaBVkECf95NHE7/oqNg== - vue-js-toggle-button@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/vue-js-toggle-button/-/vue-js-toggle-button-1.3.0.tgz#59240f215fd502f54f0c210c5fac878960b0131c"