* add icon for the assistant view.
This commit is contained in:
@@ -330,6 +330,10 @@ class ai extends control
|
||||
$assistant = $this->ai->getAssistantById($assistantId);
|
||||
$model = $this->ai->getLanguageModel($assistant->modelId);
|
||||
|
||||
list($iconName, $iconTheme) = explode('-', $assistant->icon);
|
||||
|
||||
$this->view->iconName = $iconName;
|
||||
$this->view->iconTheme = $iconTheme;
|
||||
$this->view->assistant = $assistant;
|
||||
$this->view->model = $model;
|
||||
$this->view->title = $this->lang->ai->assistants->view;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#ai-edit-icon > svg {width: 30px; height: 30px;}
|
||||
@@ -59,6 +59,24 @@ detailBody
|
||||
set::name($lang->statusAB),
|
||||
$lang->ai->assistants->statusList[$assistant->enabled]
|
||||
),
|
||||
item
|
||||
(
|
||||
set::name($lang->ai->miniPrograms->icon),
|
||||
button
|
||||
(
|
||||
set('id', 'ai-edit-icon'),
|
||||
setClass('btn btn-icon'),
|
||||
setStyle(array(
|
||||
'width' => '46px',
|
||||
'height' => '46px',
|
||||
'border-radius' => '50%',
|
||||
'border' => "1px solid {$config->ai->miniPrograms->themeList[$iconTheme][1]}",
|
||||
'background-color' => $config->ai->miniPrograms->themeList[$iconTheme][0],
|
||||
'padding' => '0',
|
||||
)),
|
||||
html($config->ai->assistants->iconList[$iconName])
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user