From: Ian Jackson Date: Fri, 13 Nov 2020 21:23:03 +0000 (+0000) Subject: move an xxx - should be done in client X-Git-Tag: otter-0.2.0~523 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cebd65e4b9d509e1685c626c4d2d4a0a1f42ce2e;p=otter.git move an xxx - should be done in client Signed-off-by: Ian Jackson --- diff --git a/src/api.rs b/src/api.rs index 74c522b4..d5fda89e 100644 --- a/src/api.rs +++ b/src/api.rs @@ -217,7 +217,6 @@ struct ApiPieceWrest { #[throws(OE)] fn api_wrest(form : Json>) -> impl response::Responder<'static> { - // xxx pinning should send to back api_piece_op(form) } impl ApiPieceOp for ApiPieceWrest { diff --git a/templates/script.ts b/templates/script.ts index 3a5ee486..d2c359c0 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -541,6 +541,7 @@ keyops_local['pin' ] = function (uo) { pin_unpin(uo, true ); } keyops_local['unpin'] = function (uo) { pin_unpin(uo, false); } function pin_unpin(uo: UoRecord, newpin: boolean) { + // xxx pinning should send to back for (let piece of uo.targets!) { let p = pieces[piece]!; p.pinned = newpin;