Small UI fixes

This commit is contained in:
Pinga 2023-12-06 22:31:01 +02:00
parent f237638b27
commit 8172bb24f0
2 changed files with 22 additions and 6 deletions

View file

@ -1586,7 +1586,7 @@ class DomainsController extends Controller
foreach ($results as $row) {
$status = $row['status'];
if (preg_match('/.*(UpdateProhibited|DeleteProhibited)$/', $status) || preg_match('/^pending/', $status)) {
$this->container->get('flash')->addMessage('error', 'It has a status that does not allow renew, first change the status');
$this->container->get('flash')->addMessage('error', 'It has a status that does not allow deletion, first change the status');
return $response->withHeader('Location', '/domains')->withStatus(302);
}
}
@ -2350,6 +2350,7 @@ class DomainsController extends Controller
[
'name' => $domainName
]
);
$this->container->get('flash')->addMessage('success', 'Transfer for ' . $domainName . ' has been rejected successfully');
return $response->withHeader('Location', '/transfers')->withStatus(302);
@ -2411,6 +2412,7 @@ class DomainsController extends Controller
[
'name' => $domainName
]
);
$this->container->get('flash')->addMessage('success', 'Transfer for ' . $domainName . ' has been cancelled successfully');
return $response->withHeader('Location', '/transfers')->withStatus(302);