modifica icone
This commit is contained in:
@@ -311,7 +311,16 @@ Il test del pulsante "Test API" continua a restituire 403 Forbidden quando acces
|
|||||||
- `prepareInputForAdd()` ora setta default 55414 per `port`, 'http' per `protocol`, 1 per `is_active`, ecc.
|
- `prepareInputForAdd()` ora setta default 55414 per `port`, 'http' per `protocol`, 1 per `is_active`, ecc.
|
||||||
- `prepareInputForUpdate()` normalizza anche valori vuoti
|
- `prepareInputForUpdate()` normalizza anche valori vuoti
|
||||||
|
|
||||||
|
**Icona plugin cambiata in ti ti-harddrives**:
|
||||||
|
- `src/Server.php:157`: Menu icon (`getMenuContent()`)
|
||||||
|
- `src/Profile.php:17`: Profile icon (`getIcon()`)
|
||||||
|
- `src/AssetTab.php:66`: Asset tab icon (`getTabNameForItem()`)
|
||||||
|
- `src/Config.php`: Aggiunto `getIcon()` per icona pagina config
|
||||||
|
|
||||||
**File modificati**:
|
**File modificati**:
|
||||||
- `src/Server.php`: `showFormFields()`, `showMissingClientsTab()`, `getCachedName()` fix, `getAssetGroupName()`, `getAssetIp()`, `getCachedLocationName()`, `prepareInputForAdd/Update` default fix
|
- `src/Server.php`: `showFormFields()`, `showMissingClientsTab()`, `getCachedName()` fix, `getAssetGroupName()`, `getAssetIp()`, `getCachedLocationName()`, `prepareInputForAdd/Update` default fix, icon
|
||||||
- `front/server.form.php`: Tab laterali, tab hash JS, breadcrumb admin
|
- `front/server.form.php`: Tab laterali, tab hash JS, breadcrumb admin, navigazione server
|
||||||
- `front/server.php`: Breadcrumb admin, rimosso pulsante "Add" manuale (GLPI lo genera)
|
- `front/server.php`: Breadcrumb admin, rimosso pulsante "Add" manuale (GLPI lo genera)
|
||||||
|
- `src/Profile.php`: Icon
|
||||||
|
- `src/AssetTab.php`: Icon
|
||||||
|
- `src/Config.php`: Aggiunto `getIcon()`
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ class AssetTab extends CommonDBTM
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::createTabEntry(__('UrBackup', 'urbackup'), 0, null, 'ti ti-cloud-upload');
|
return self::createTabEntry(__('UrBackup', 'urbackup'), 0, null, 'ti ti-harddrives');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ class Config extends CommonDBTM
|
|||||||
{
|
{
|
||||||
public static $rightname = 'config';
|
public static $rightname = 'config';
|
||||||
|
|
||||||
|
public static function getIcon()
|
||||||
|
{
|
||||||
|
return 'ti ti-harddrives';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get type name.
|
* Get type name.
|
||||||
*
|
*
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ class Profile extends \Profile
|
|||||||
|
|
||||||
public static function getIcon()
|
public static function getIcon()
|
||||||
{
|
{
|
||||||
return 'ti ti-server';
|
return 'ti ti-harddrives';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
|
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
|
||||||
|
|||||||
+1
-1
@@ -154,7 +154,7 @@ class Server extends CommonDBTM
|
|||||||
if (self::canView()) {
|
if (self::canView()) {
|
||||||
$menu['title'] = self::getMenuName();
|
$menu['title'] = self::getMenuName();
|
||||||
$menu['page'] = self::getSearchURL(false);
|
$menu['page'] = self::getSearchURL(false);
|
||||||
$menu['icon'] = 'ti ti-server';
|
$menu['icon'] = 'ti ti-harddrives';
|
||||||
|
|
||||||
$menu['links']['search'] = self::getSearchURL(false);
|
$menu['links']['search'] = self::getSearchURL(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user