Skip to content

Commit

Permalink
Went through todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed May 2, 2024
1 parent e7f6048 commit 48ae5be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Admin/Routes/Web/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use phpOMS\Router\RouteVerb;

return [
'^.*/view$' => [
'^.*/profile(\?.*|$)$' => [
[
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
'verb' => RouteVerb::PUT,
Expand All @@ -34,7 +34,7 @@
],
],

'^.*/view/settings/localization(\?.*|$)' => [
'^.*/profile/settings/localization(\?.*|$)' => [
[
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountLocalizationSet',
'verb' => RouteVerb::SET,
Expand All @@ -47,7 +47,7 @@
],
],
],
'^.*/view/settings/password(\?.*|$)' => [
'^.*/profile/settings/password(\?.*|$)' => [
[
'dest' => '\Modules\Admin\Controller\ApiController:apiSettingsAccountPasswordSet',
'verb' => RouteVerb::SET,
Expand All @@ -60,7 +60,7 @@
],
],
],
'^.*/view/settings/image(\?.*|$)' => [
'^.*/profile/settings/image(\?.*|$)' => [
[
'dest' => '\Modules\Profile\Controller\ApiController:apiSettingsAccountImageSet',
'verb' => RouteVerb::SET,
Expand Down
4 changes: 2 additions & 2 deletions Theme/Backend/profile-view.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
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"}
Expand Down

0 comments on commit 48ae5be

Please sign in to comment.