mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
* feat: use prime logo when server-flavor is prime Signed-off-by: Andy Lee <andy.lee@suse.com> * feat: expose server-flavor setting Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: copilot review Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
15 lines
497 B
JavaScript
15 lines
497 B
JavaScript
import ManagementSetting from '@shell/models/management.cattle.io.setting';
|
|
import { HCI_SETTING } from '../../config/settings';
|
|
|
|
export default class HarvesterManagementSetting extends ManagementSetting {
|
|
get _availableActions() {
|
|
const actions = super._availableActions;
|
|
|
|
if (this.$rootGetters['isStandaloneHarvester'] && this.id === HCI_SETTING.UI_PL) {
|
|
return actions.filter((action) => !['goToClone', 'promptRemove'].includes(action.action));
|
|
}
|
|
|
|
return actions;
|
|
}
|
|
}
|