Went through todos

This commit is contained in:
Dennis Eichhorn 2024-05-02 22:54:38 +00:00
parent e7f6048f65
commit 48ae5bef3b
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/view$' => [
'^.*/profile(\?.*|$)$' => [
[
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
'verb' => RouteVerb::PUT,
@ -34,7 +34,7 @@ return [
],
],
'^.*/view/settings/localization(\?.*|$)' => [
'^.*/profile/settings/localization(\?.*|$)' => [
[
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet',
'verb' => RouteVerb::SET,
@ -47,7 +47,7 @@ return [
],
],
],
'^.*/view/settings/password(\?.*|$)' => [
'^.*/profile/settings/password(\?.*|$)' => [
[
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountPasswordSet',
'verb' => RouteVerb::SET,
@ -60,7 +60,7 @@ return [
],
],
],
'^.*/view/settings/image(\?.*|$)' => [
'^.*/profile/settings/image(\?.*|$)' => [
[
'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet',
'verb' => RouteVerb::SET,

View File

@ -63,9 +63,9 @@ echo $this->data['nav']->render();
src="<?= $profile->image->id === 0
? UriFactory::build($this->data['defaultImage']->getPath())
: UriFactory::build($profile->image->getPath()); ?>"
width="100px"></div>
width="100px" style="margin-bottom: .5rem;"></div>
<?php if ($this->request->header->account === $profile->account->id) : ?>
<div class="cT"><a id="iProfileUploadButton" href="#upload" data-action='[
<div class="cT"><a id="iProfileUploadButton" class="content" href="#upload" data-action='[
{"listener": "click", "key": 1, "action": [
{"key": 1, "type": "event.prevent"},
{"key": 2, "type": "dom.click", "selector": "#iProfileUpload"}