A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/signumsoftware/framework/commit/65054d7a700dd6a5d14581e0427544f05a6be2d8 below:

combine with commonOnClick · signumsoftware/framework@65054d7 · GitHub

@@ -208,15 +208,11 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

208 208

}));

209 209 210 210

Operations.addSettings(new EntityOperationSettings(CaseOperation.Delete, {

211 -

onClick: eoc => askDeleteMainEntity(eoc.entity.mainEntity)

212 -

.then(u => u == undefined ? undefined : eoc.defaultClick(u)),

213 -

contextual: {

214 -

onClick: coc => askDeleteMainEntity(coc.pack!.entity.mainEntity)

215 -

.then(u => u == undefined ? undefined : coc.defaultContextualClick(u))

216 -

},

211 +

commonOnClick: oc => oc.getEntity().then(e=> askDeleteMainEntity(e.mainEntity))

212 +

.then(u => u == undefined ? undefined : oc.defaultClick(u)),

217 213

contextualFromMany: {

218 214

onClick: coc => askDeleteMainEntity()

219 -

.then(u => u == undefined ? undefined : coc.defaultContextualClick(u))

215 +

.then(u => u == undefined ? undefined : coc.defaultClick(u))

220 216

},

221 217

}));

222 218

@@ -233,15 +229,11 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

233 229

Operations.addSettings(new EntityOperationSettings(CaseActivityOperation.Delete, {

234 230

hideOnCanExecute: true,

235 231

isVisible: ctx => false,

236 -

onClick: eoc => askDeleteMainEntity(eoc.entity.case.mainEntity)

237 -

.then(u => u == undefined ? undefined : eoc.defaultClick(u)),

238 -

contextual: {

239 -

onClick: coc => askDeleteMainEntity(coc.pack!.entity.case.mainEntity)

240 -

.then(u => u == undefined ? undefined : coc.defaultContextualClick(u))

241 -

},

232 +

commonOnClick: oc => oc.getEntity().then(e => askDeleteMainEntity(e.case.mainEntity))

233 +

.then(u => u == undefined ? undefined : oc.defaultClick(u)),

242 234

contextualFromMany: {

243 235

onClick: coc => askDeleteMainEntity()

244 -

.then(u => u == undefined ? undefined : coc.defaultContextualClick(u))

236 +

.then(u => u == undefined ? undefined : coc.defaultClick(u))

245 237

},

246 238

}));

247 239

@@ -267,7 +259,7 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

267 259

onClick: coc =>

268 260

Navigator.API.fetch(coc.context.lites[0])

269 261

.then(ca => getWorkflowJumpSelector(toLite(ca.workflowActivity as WorkflowActivityEntity)))

270 -

.then(dest => dest && coc.defaultContextualClick(dest))

262 +

.then(dest => dest && coc.defaultClick(dest))

271 263 272 264

}

273 265

}));

@@ -289,7 +281,7 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

289 281

onClick: coc =>

290 282

Navigator.API.fetch(coc.context.lites[0])

291 283

.then(ca => getWorkflowFreeJump(ca.case.workflow))

292 -

.then(dest => dest && coc.defaultContextualClick(dest))

284 +

.then(dest => dest && coc.defaultClick(dest))

293 285

}

294 286

}));

295 287

Operations.addSettings(new EntityOperationSettings(CaseActivityOperation.Timer, { isVisible: ctx => false }));

@@ -341,7 +333,7 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

341 333

: <OperationMenuItem coc={coc} color={wa.customNextButton.style.toLowerCase() as BsColor}>{wa.customNextButton.name}</OperationMenuItem>];

342 334 343 335

} else if (wa.type == "Decision") {

344 -

return wa.decisionOptions.map(mle => <OperationMenuItem coc={coc} onOperationClick={() => coc.defaultContextualClick(mle.element.name)} color={mle.element.style.toLowerCase() as BsColor}>{mle.element.name}</OperationMenuItem>);

336 +

return wa.decisionOptions.map(mle => <OperationMenuItem coc={coc} onOperationClick={() => coc.defaultClick(mle.element.name)} color={mle.element.style.toLowerCase() as BsColor}>{mle.element.name}</OperationMenuItem>);

345 337

}

346 338

else

347 339

return [];

@@ -379,16 +371,31 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

379 371

Operations.addSettings(new EntityOperationSettings(WorkflowOperation.Deactivate, {

380 372

onClick: eoc => chooseWorkflowExpirationDate([toLite(eoc.entity)]).then(val => !val ? undefined : eoc.defaultClick(val)),

381 373

contextual: {

382 -

onClick: coc => chooseWorkflowExpirationDate(coc.context.lites).then(val => !val ? undefined : coc.defaultContextualClick(val)),

374 +

onClick: coc => chooseWorkflowExpirationDate(coc.context.lites).then(val => !val ? undefined : coc.defaultClick(val)),

383 375

icon: ["far", "heart"],

384 376

iconColor: "gray"

385 377

},

386 378

contextualFromMany: {

387 -

onClick: coc => chooseWorkflowExpirationDate(coc.context.lites).then(val => !val ? undefined : coc.defaultContextualClick(val)),

379 +

onClick: coc => chooseWorkflowExpirationDate(coc.context.lites).then(val => !val ? undefined : coc.defaultClick(val)),

388 380

icon: ["far", "heart"],

389 381

iconColor: "gray"

390 382

},

391 383

}));

384 + 385 +

function chooseWorkflowExpirationDate(workflows: Lite<WorkflowEntity>[]): Promise<string | undefined> {

386 +

return ValueLineModal.show({

387 +

type: { name: "string" },

388 +

valueLineType: "DateTime",

389 +

modalSize: "md",

390 +

title: WorkflowMessage.DeactivateWorkflow.niceToString(),

391 +

message:

392 +

<div>

393 +

<strong>{WorkflowMessage.PleaseChooseExpirationDate.niceToString()}</strong>

394 +

<ul>{workflows.map((w, i) => <li key={i}>{getToString(w)}</li>)}</ul>

395 +

</div>

396 +

});

397 +

}

398 + 392 399

Navigator.addSettings(new EntitySettings(WorkflowEntity, w => import('./Workflow/Workflow'), { avoidPopup: true }));

393 400 394 401

hide(WorkflowPoolEntity);

@@ -443,19 +450,6 @@ export function start(options: { routes: JSX.Element[], overrideCaseActivityMixi

443 450

}

444 451

}

445 452 446 -

function chooseWorkflowExpirationDate(workflows: Lite<WorkflowEntity>[]): Promise<string | undefined> {

447 -

return ValueLineModal.show({

448 -

type: { name: "string" },

449 -

valueLineType: "DateTime",

450 -

modalSize: "md",

451 -

title: WorkflowMessage.DeactivateWorkflow.niceToString(),

452 -

message:

453 -

<div>

454 -

<strong>{WorkflowMessage.PleaseChooseExpirationDate.niceToString()}</strong>

455 -

<ul>{workflows.map((w, i) => <li key={i}>{getToString(w)}</li>)}</ul>

456 -

</div>

457 -

});

458 -

}

459 453 460 454

export function workflowActivityMonitorUrl

461 455

(workflow: Lite<WorkflowEntity>) {


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4