set border color for account deletion request and rename heading
also, fix caught Exception type and message (missed to push earlier) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
d85093a010
commit
64c1c5becc
|
@ -1,3 +0,0 @@
|
||||||
#data-request * button {
|
|
||||||
min-width: 225px;
|
|
||||||
}
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#data-request * button {
|
||||||
|
min-width: 225px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#data-request-deletion {
|
||||||
|
border-color: $color-error;
|
||||||
|
}
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
namespace OCA\DataRequest\Controller;
|
namespace OCA\DataRequest\Controller;
|
||||||
|
|
||||||
use OC\HintException;
|
use OCA\DataRequest\Exceptions\HintedRuntime;
|
||||||
use OCA\DataRequest\Services\Request;
|
use OCA\DataRequest\Services\Request;
|
||||||
use OCP\AppFramework\Http;
|
use OCP\AppFramework\Http;
|
||||||
use OCP\AppFramework\Http\DataResponse;
|
use OCP\AppFramework\Http\DataResponse;
|
||||||
|
@ -55,9 +55,9 @@ class DataRequestController extends OCSController {
|
||||||
try {
|
try {
|
||||||
$this->dataRequest->sendExportRequest();
|
$this->dataRequest->sendExportRequest();
|
||||||
return new DataResponse();
|
return new DataResponse();
|
||||||
} catch(\RuntimeException $e) {
|
} catch(HintedRuntime $e) {
|
||||||
return new DataResponse(
|
return new DataResponse(
|
||||||
['error' => $e->getMessage()],
|
['error' => $e->getHint()],
|
||||||
Http::STATUS_INTERNAL_SERVER_ERROR
|
Http::STATUS_INTERNAL_SERVER_ERROR
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ class DataRequestController extends OCSController {
|
||||||
try {
|
try {
|
||||||
$this->dataRequest->sendDeleteRequest();
|
$this->dataRequest->sendDeleteRequest();
|
||||||
return new DataResponse();
|
return new DataResponse();
|
||||||
} catch(HintException $e) {
|
} catch(HintedRuntime $e) {
|
||||||
return new DataResponse(
|
return new DataResponse(
|
||||||
['error' => $e->getHint()],
|
['error' => $e->getHint()],
|
||||||
Http::STATUS_INTERNAL_SERVER_ERROR
|
Http::STATUS_INTERNAL_SERVER_ERROR
|
||||||
|
|
|
@ -28,11 +28,11 @@ script('data_request', ['init', 'app']);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="data-request" class="section">
|
<div id="data-request" class="section">
|
||||||
<h2><?php p($l->t('Personal data requests')); ?></h2>
|
<h2><?php p($l->t('Account')); ?></h2>
|
||||||
<div>
|
<div>
|
||||||
<button id="data-request-export" data-request="export" class="button"><?php p($l->t('Request data export')); ?></button>
|
<button id="data-request-export" data-request="export" class="button"><?php p($l->t('Request data export')); ?></button><span class="warning hidden"></span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button id="data-request-deletion" data-request="deletion" class="button"><?php p($l->t('Request account deletion')); ?></button>
|
<button id="data-request-deletion" data-request="deletion" class="button"><?php p($l->t('Request account deletion')); ?></button><span class="warning hidden"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue