Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	package.json
#	src/components/utils/tableau.vue
  • Loading branch information
jerome committed May 28, 2020
2 parents c04b289 + d960dc4 commit 282a64a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "item-ui",
"version": "2.0.4",
"version": "2.0.5-SNAPSHOT",
"private": true,
"description": "Front-end Item",
"description": "Front-end Kopya",
"scripts": {
"serve": "vue-cli-service serve --port 3000",
"lint": "vue-cli-service lint",
Expand Down
9 changes: 2 additions & 7 deletions src/components/utils/tableau.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default {
name: 'tableauComponent',
data() {
return {
sortBy: 'dateModificationBrute',
sortBy: 'dateModification',
descending: true,
pagination: {
sortBy: 'name',
Expand Down Expand Up @@ -428,10 +428,6 @@ export default {
// Couleur de l'icone de commentaire
this.getCommentColor();
// Tri par défaut sur les numéros demandes
this.customSort('num');
this.pagination.descending = true;
},
beforeDestroy() {
clearInterval(this.polling);
Expand Down Expand Up @@ -883,8 +879,7 @@ export default {
return (b.zoneSousZone).localeCompare(a.zoneSousZone);
}
// TODO ulterieurement le traitement en modification pour le tri a faire
// eslint-disable-next-line no-restricted-globals
if (!(isNaN(a[index[0]]))) {
if (!(Number.isNaN(a[index[0]]))) {
if (!isDesc[0]) {
return (a[index[0]] - b[index[0]]);
}
Expand Down

0 comments on commit 282a64a

Please sign in to comment.