Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (48 sloc) 1.11 KB
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\web\assets\edituser;
use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
use craft\web\View;
/**
* Asset bundle for the Edit User page
*/
class EditUserAsset extends AssetBundle
{
/**
* @inheritdoc
*/
public function init()
{
$this->sourcePath = __DIR__ . '/dist';
$this->depends = [
CpAsset::class,
];
$this->css = [
'account.css',
'profile.css',
];
$this->js = [
'AccountSettingsForm' . $this->dotJs(),
'profile' . $this->dotJs(),
];
parent::init();
}
/**
* @inheritdoc
*/
public function registerAssetFiles($view)
{
parent::registerAssetFiles($view);
if ($view instanceof View) {
$view->registerTranslations('app', [
'Please enter your current password.',
'Please enter your password.',
]);
}
}
}
You can’t perform that action at this time.