@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class ManiphestTaskEditEngineLock
4 extends PhabricatorEditEngineLock {
5
6 public function willPromptUserForLockOverrideWithDialog(
7 AphrontDialogView $dialog) {
8
9 return $dialog
10 ->setTitle(pht('Edit Locked Task'))
11 ->appendParagraph(pht('This task is locked. Edit it anyway?'))
12 ->addSubmitButton(pht('Override Task Lock'));
13 }
14
15 public function willBlockUserInteractionWithDialog(
16 AphrontDialogView $dialog) {
17
18 return $dialog
19 ->setTitle(pht('Task Locked'))
20 ->appendParagraph(
21 pht('You can not interact with this task because it is locked.'));
22 }
23
24 public function getLockedObjectDisplayText() {
25 return pht('This task has been locked.');
26 }
27
28}