mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-03 12:46:06 +08:00
Compare commits
4
Commits
v1.5.1-rc3
...
v1.5.1-rc4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4599159bff | ||
|
|
ef40cf5d8d | ||
|
|
d57dbd4c8e | ||
|
|
4c68d057c1 |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "harvester-ui-extension",
|
||||
"version": "1.5.1-rc2",
|
||||
"version": "1.5.1-rc4",
|
||||
"private": false,
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
|
||||
@@ -128,7 +128,7 @@ export default {
|
||||
},
|
||||
|
||||
protip() {
|
||||
return this.t('promptRemove.protip', { alternateLabel });
|
||||
return this.t('dialog.promptRemove.protip', { alternateLabel });
|
||||
},
|
||||
},
|
||||
|
||||
@@ -164,7 +164,7 @@ export default {
|
||||
>
|
||||
<template #title>
|
||||
<h4 class="text-default-text">
|
||||
{{ t('promptRemove.title') }}
|
||||
{{ t(title, { type }, true) }}
|
||||
</h4>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -52,6 +52,11 @@ dialog:
|
||||
message: "Are you sure you want to continue stop the {type} {names}?"
|
||||
pause:
|
||||
message: "Are you sure you want to continue pause the {type} {names}?"
|
||||
promptRemove:
|
||||
title: "Delete {type}"
|
||||
warningMessage: "Deleting the selected {type} permanently removes all resources on {thisOrThese} {type}. This action is irreversible. Do you want to continue?"
|
||||
confirmName: "Type <b>{nameToMatch}</b> to delete the {type}:"
|
||||
protip: "Tip: Hold the {alternateLabel} key while clicking Delete to bypass the confirmation step."
|
||||
|
||||
harvester:
|
||||
branding:
|
||||
@@ -785,7 +790,7 @@ harvester:
|
||||
instanceLabels:
|
||||
banner: These labels are automatically synchronized to the virtual machine instance.
|
||||
labels:
|
||||
banner: These key values are added as labels to the virtual machine.
|
||||
banner: These key values are added as labels to the virtual machine.
|
||||
|
||||
volume:
|
||||
label: Volumes
|
||||
|
||||
@@ -67,8 +67,7 @@ export default class HciNamespace extends namespace {
|
||||
promptRemove(resources = this) {
|
||||
this.$dispatch('promptModal', {
|
||||
resources,
|
||||
warningMessageKey: 'promptRemove.confirmRelatedResource',
|
||||
component: 'ConfirmRelatedToRemoveDialog'
|
||||
component: 'ConfirmRelatedToRemoveDialog'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -115,8 +115,7 @@ export default class HciNode extends HarvesterResource {
|
||||
promptRemove(resources = this) {
|
||||
this.$dispatch('promptModal', {
|
||||
resources,
|
||||
warningMessageKey: 'promptRemove.confirmRelatedResource',
|
||||
component: 'ConfirmRelatedToRemoveDialog'
|
||||
component: 'ConfirmRelatedToRemoveDialog'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -32,14 +32,11 @@ export default class HciSetting extends HarvesterResource {
|
||||
const hasUpgradeAccess = !!schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase()));
|
||||
|
||||
if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) {
|
||||
const latestUpgrade = this.$getters['all'](HCI.UPGRADE).find((upgrade) => upgrade.isLatestUpgrade);
|
||||
|
||||
out.unshift({
|
||||
action: 'goToAirgapUpgrade',
|
||||
enabled: true,
|
||||
icon: 'icon icon-refresh',
|
||||
label: this.t('harvester.upgradePage.upgrade'),
|
||||
disabled: !!latestUpgrade && latestUpgrade?.isUpgradeSucceeded
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "harvester",
|
||||
"description": "Rancher UI Extension for Harvester",
|
||||
"version": "1.5.1-rc2",
|
||||
"version": "1.5.1-rc4",
|
||||
"private": false,
|
||||
"rancher": {
|
||||
"annotations": {
|
||||
|
||||
Reference in New Issue
Block a user