diff --git a/back-end/package-lock.json b/back-end/package-lock.json index 2d07f56..eeae30a 100644 --- a/back-end/package-lock.json +++ b/back-end/package-lock.json @@ -1,12 +1,12 @@ { "name": "back-end", - "version": "1.8.2", + "version": "1.8.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "back-end", - "version": "1.8.2", + "version": "1.8.3", "dependencies": { "axios": "^1.4.0", "date-fns": "^2.30.0", diff --git a/back-end/package.json b/back-end/package.json index 48b2559..218eeb8 100644 --- a/back-end/package.json +++ b/back-end/package.json @@ -1,5 +1,5 @@ { - "version": "1.8.2", + "version": "1.8.3", "name": "back-end", "scripts": { "lint": "eslint --ext .ts", diff --git a/back-end/swagger.yaml b/back-end/swagger.yaml index 7e0e61f..57326be 100644 --- a/back-end/swagger.yaml +++ b/back-end/swagger.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: title: ESN Assembly app - version: 1.8.2 + version: 1.8.3 contact: name: Matteo Carbone email: email@matteocarbone.com diff --git a/front-end/package-lock.json b/front-end/package-lock.json index 63d6acb..9dd752f 100644 --- a/front-end/package-lock.json +++ b/front-end/package-lock.json @@ -1,12 +1,12 @@ { "name": "esn-assembly", - "version": "1.8.2", + "version": "1.8.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "esn-assembly", - "version": "1.8.2", + "version": "1.8.3", "dependencies": { "@angular/animations": "^16.1.8", "@angular/common": "^16.1.8", diff --git a/front-end/package.json b/front-end/package.json index d559b4a..ca546aa 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -1,6 +1,6 @@ { "name": "esn-assembly", - "version": "1.8.2", + "version": "1.8.3", "author": "Matteo Carbone", "homepage": "https://matteocarbone.com/", "scripts": { diff --git a/front-end/src/app/tabs/voting/ballots/ballots.component.ts b/front-end/src/app/tabs/voting/ballots/ballots.component.ts index d397bfb..318ea4f 100644 --- a/front-end/src/app/tabs/voting/ballots/ballots.component.ts +++ b/front-end/src/app/tabs/voting/ballots/ballots.component.ts @@ -220,9 +220,7 @@ export class BallotsStandaloneComponent implements OnChanges, OnDestroy { } handleBallotReorder({ detail }): void { - const toReposition = this.votingSession.ballots.splice(detail.from, 1)[0]; - this.votingSession.ballots.splice(detail.to, 0, toReposition); - detail.complete(); + this.votingSession.ballots = detail.complete(this.votingSession.ballots); } buildCharts(): void { diff --git a/front-end/src/app/tabs/voting/ballots/manageBallot.component.ts b/front-end/src/app/tabs/voting/ballots/manageBallot.component.ts index 178f45e..c302e19 100644 --- a/front-end/src/app/tabs/voting/ballots/manageBallot.component.ts +++ b/front-end/src/app/tabs/voting/ballots/manageBallot.component.ts @@ -100,9 +100,7 @@ export class ManageBallotStandaloneComponent implements OnInit { this.ballot.options.push(''); } handleOptionsReorder({ detail }): void { - const toReposition = this.ballot.options.splice(detail.from, 1)[0]; - this.ballot.options.splice(detail.to, 0, toReposition); - detail.complete(); + this.ballot.options = detail.complete(this.ballot.options); } removeOptionByIndex(index: number): void { this.ballot.options.splice(index, 1); diff --git a/front-end/src/environments/environment.idea.ts b/front-end/src/environments/environment.idea.ts index 17a9476..8a5b313 100644 --- a/front-end/src/environments/environment.idea.ts +++ b/front-end/src/environments/environment.idea.ts @@ -10,7 +10,7 @@ const STAGE = 'prod'; */ export const environment = { idea: { - app: { version: '1.8.2', mediaUrl: 'https://'.concat(parameters.mediaDomain), maxFileUploadSizeMB: 50 }, + app: { version: '1.8.3', mediaUrl: 'https://'.concat(parameters.mediaDomain), maxFileUploadSizeMB: 50 }, api: { url: parameters.apiDomain, stage: STAGE }, socket: { url: parameters.webSocketApiDomain, stage: STAGE }, ionicExtraModules: ['common']