# HG changeset patch # User Thomas Junk # Date 1550503140 -3600 # Node ID bd8ecc90ccf4a33ccfd6154acd51ac1faab077b3 # Parent da4c91866dfe02e769fc87c5b5858ab59530fdce import_queue: 'abgelehnt' filters for declined instead of rejected diff -r da4c91866dfe -r bd8ecc90ccf4 client/src/components/importqueue/Importqueue.vue --- a/client/src/components/importqueue/Importqueue.vue Mon Feb 18 16:08:33 2019 +0100 +++ b/client/src/components/importqueue/Importqueue.vue Mon Feb 18 16:19:00 2019 +0100 @@ -28,12 +28,6 @@ />
- @@ -134,11 +128,7 @@ setFilter(name) { this[name] = !this[name]; const allSet = - this.successful && - this.failed && - this.pending && - this.accepted && - this.rejected; + this.failed && this.pending && this.accepted && this.rejected; if (allSet) { this.successful = false; this.failed = false; @@ -201,20 +191,13 @@ }); }) .filter(y => { - if ( - !this.successful && - !this.failed && - !this.pending && - !this.accepted && - !this.rejected - ) + if (!this.failed && !this.pending && !this.accepted && !this.rejected) return true; let filterCriteria = []; - if (this.successful) filterCriteria.push("successful"); if (this.failed) filterCriteria.push("failed"); if (this.pending) filterCriteria.push("pending"); if (this.accepted) filterCriteria.push("accepted"); - if (this.rejected) filterCriteria.push("rejected"); + if (this.rejected) filterCriteria.push("declined"); const result = filterCriteria.map(selectedState => { return y.state === selectedState; }); @@ -222,13 +205,6 @@ }); return filtered; }, - successfulStyle() { - return { - btn: true, - "btn-light": !this.successful, - "btn-dark": this.successful - }; - }, pendingStyle() { return { btn: true,