Skip to content

Commit b62cfbe

Browse files
committed
Fixed problem with updating tournaments
1 parent e9511eb commit b62cfbe

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"fs-extra": "^4.0.1",
77
"glob": "^7.1.1",
88
"gulp": "gulpjs/gulp#4.0",
9+
"gulp-babel-minify": "^0.2.0",
910
"gulp-html-minifier": "^0.1.8",
1011
"gulp-if": "^2.0.1",
12+
"gulp-imagemin": "^3.3.0",
1113
"gulp-jshint": "^2.0.2",
1214
"gulp-replace": "^0.6.1",
1315
"gulp-style-modules": "^0.1.0",
@@ -16,10 +18,8 @@
1618
"merge-stream": "^1.0.0",
1719
"plylog": "^0.5.0",
1820
"polymer-build": "^2.0.0",
19-
"polyserve": "^0.20.0",
20-
"superagent": "^3.2.1",
21-
"gulp-babel-minify": "^0.2.0",
22-
"gulp-imagemin": "^3.3.0"
21+
"polyserve": "^0.27.13",
22+
"superagent": "^3.2.1"
2323
},
2424
"scripts": {
2525
"build": "node ./node_modules/gulp/bin/gulp.js",

src/lancie-admin-web/lancie-admin-tournaments.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
on-lancie-ajax="handleSponsorResponse"></lancie-ajax>
9393
<lancie-ajax id="ajaxDeleteTournament" method="DELETE" refurl="web/tournament/[[deleteTournament.id]]"
9494
on-lancie-ajax="handleDeleteResponse"></lancie-ajax>
95-
<lancie-ajax id="ajaxAddTournament" method="POST" refurl="[[tournamentFormRefUrl]]"
95+
<lancie-ajax id="ajaxAddTournament" method=[[method]] refurl="[[tournamentFormRefUrl]]"
9696
on-lancie-ajax="handleAddResponse"
9797
body="[[displayingTournament]]"></lancie-ajax>
9898

@@ -265,12 +265,14 @@ <h4>Are you certain you want to delete this tournament?</h4>
265265
this.set('displayingTournament', this.tournaments.filter(tournament => tournament.id === event.detail.id)[0]);
266266
this.set('displayingTournamentUpdated', false);
267267
this.set('tournamentFormRefUrl', 'web/tournament/' + this.displayingTournament.id);
268+
this.set('method', "PUT");
268269
this.$.tournamentDialog.open();
269270
}
270271

271272
openTournamentDialogNew() {
272273
this._clearTournamentDialog();
273274
this.set('tournamentFormRefUrl', 'web/tournament');
275+
this.set('method', "POST");
274276
this.$.tournamentDialog.open();
275277
}
276278

0 commit comments

Comments
 (0)