Skip to content
Snippets Groups Projects
Commit f4b9d6b3 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

dele useless functions for futures_sorties

parent 5901d139
No related branches found
No related tags found
No related merge requests found
{
"__schema": {
"types": [
{
"kind": "UNION",
"name": "CertifOrDossier",
"possibleTypes": [
{ "name": "MarkedDatedCertification" },
{ "name": "MarkedDossier" }
]
},
{
"kind": "INTERFACE",
"name": "File",
"possibleTypes": [{ "name": "FileS" }]
},
{
"kind": "INTERFACE",
"name": "WWResult",
"possibleTypes": [{ "name": "WWResultS" }]
}
]
}
}
{"__schema":{"types":[{"kind":"UNION","name":"CertifOrDossier","possibleTypes":[{"name":"MarkedDatedCertification"},{"name":"MarkedDossier"}]},{"kind":"INTERFACE","name":"File","possibleTypes":[{"name":"FileS"}]},{"kind":"INTERFACE","name":"WWResult","possibleTypes":[{"name":"WWResultS"}]}]}}
\ No newline at end of file
......@@ -80,7 +80,7 @@
"supprimer": "Delete from favourites",
"title": "My favourites"
},
"futuremembers": "Future members",
"futuremembers": "Future entries",
"futureexits": "Future exits",
"infos": "Informations",
"inout": "Entries and exits of the web of trust for the last 2 days",
......
......@@ -80,7 +80,7 @@
"supprimer": "Eliminar de favoritos",
"title": "Mis favoritos"
},
"futuremembers": "Futuros miembros",
"futuremembers": "Futuras entradas",
"futureexits": "Futuras salidas",
"infos": "Informaciones",
"inout": "Entradas y salidas de la red de confianza en los últimos 2 días",
......
......@@ -80,7 +80,7 @@
"supprimer": "Supprimer des favoris",
"title": "Mes favoris"
},
"futuremembers": "Futurs membres",
"futuremembers": "Futurs entrées",
"futureexits": "Futures sorties",
"infos": "Informations",
"inout": "Entrées et sorties de la toile de confiance des 2 derniers jours",
......
......@@ -56,9 +56,6 @@
<script>
import { NEXT_EXITS } from "@/graphql/queries.js"
const day = 24 * 60 * 60
const defaultPeriod = 30 * day
export default {
data() {
return {
......@@ -82,40 +79,14 @@ export default {
},
methods: {
save() {
this.error = null
localStorage.setItem("previsions_period", this.getPeriod() / day)
},
addValue(arr, val) {
if (
arr.filter(function (e) {
return e.uid === val.uid
}).length == 0
) {
arr.push(val)
}
return arr
},
getPeriod() {
if (this.period != "") {
let tempPeriod = parseInt(this.period)
if (tempPeriod < 1) {
this.error = this.$t("error.tooSmall", [tempPeriod, 1, 30])
return day
}
if (tempPeriod > 30) {
this.error = this.$t("error.tooBig", [tempPeriod, 1, 30])
return 30 * day
}
return this.period * day
}
return defaultPeriod
localStorage.setItem("previsions_period", this.period)
}
},
apollo: {
wwResult: {
query: NEXT_EXITS,
variables() {
return { period: this.getPeriod() }
return { period: this.period * 24 * 60 * 60 }
},
update(data) {
let result = { membership: [], outOfCerts: [] }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment