-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added user profile link in sub-items list
- Loading branch information
Showing
7 changed files
with
99 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
src/bundle/Resources/public/js/scripts/widgets/flatpickr.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import flatpickrLanguages from '../../../../../../../../../../public/bundles/ibexaadminuiassets/vendors/flatpickr/dist/l10n'; | ||
|
||
(function (global, doc, ibexa, flatpickr) { | ||
const { backOfficeLanguage } = ibexa.adminUiConfig; | ||
const flatpickrLanguage = flatpickrLanguages[backOfficeLanguage] ?? flatpickrLanguages.default; | ||
|
||
flatpickr.localize(flatpickrLanguage); | ||
})(window, window.document, window.ibexa, window.flatpickr); | ||
// import flatpickrLanguages from '../../../../../../../../../../public/bundles/ibexaadminuiassets/vendors/flatpickr/dist/l10n'; | ||
// | ||
// (function (global, doc, ibexa, flatpickr) { | ||
// const { backOfficeLanguage } = ibexa.adminUiConfig; | ||
// const flatpickrLanguage = flatpickrLanguages[backOfficeLanguage] ?? flatpickrLanguages.default; | ||
// | ||
// flatpickr.localize(flatpickrLanguage); | ||
// })(window, window.document, window.ibexa, window.flatpickr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ibexa\AdminUi\UI\Config\Provider; | ||
|
||
use Ibexa\AdminUi\UserProfile\UserProfileConfiguration; | ||
use Ibexa\Contracts\AdminUi\UI\Config\ProviderInterface; | ||
|
||
final class UserProfile implements ProviderInterface | ||
{ | ||
private UserProfileConfiguration $configuration; | ||
|
||
public function __construct(UserProfileConfiguration $configuration) | ||
{ | ||
$this->configuration = $configuration; | ||
} | ||
|
||
/** | ||
* @return array<string, mixed> | ||
*/ | ||
public function getConfig(): array | ||
{ | ||
return [ | ||
'enabled' => $this->configuration->isEnabled(), | ||
'content_types' => $this->configuration->getContentTypes(), | ||
]; | ||
} | ||
} |