mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 21:26:08 +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",
|
"name": "harvester-ui-extension",
|
||||||
"version": "1.5.1-rc2",
|
"version": "1.5.1-rc4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.0.0"
|
"node": ">=20.0.0"
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
protip() {
|
protip() {
|
||||||
return this.t('promptRemove.protip', { alternateLabel });
|
return this.t('dialog.promptRemove.protip', { alternateLabel });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ export default {
|
|||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
<h4 class="text-default-text">
|
<h4 class="text-default-text">
|
||||||
{{ t('promptRemove.title') }}
|
{{ t(title, { type }, true) }}
|
||||||
</h4>
|
</h4>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,11 @@ dialog:
|
|||||||
message: "Are you sure you want to continue stop the {type} {names}?"
|
message: "Are you sure you want to continue stop the {type} {names}?"
|
||||||
pause:
|
pause:
|
||||||
message: "Are you sure you want to continue pause the {type} {names}?"
|
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:
|
harvester:
|
||||||
branding:
|
branding:
|
||||||
|
|||||||
@@ -67,8 +67,7 @@ export default class HciNamespace extends namespace {
|
|||||||
promptRemove(resources = this) {
|
promptRemove(resources = this) {
|
||||||
this.$dispatch('promptModal', {
|
this.$dispatch('promptModal', {
|
||||||
resources,
|
resources,
|
||||||
warningMessageKey: 'promptRemove.confirmRelatedResource',
|
component: 'ConfirmRelatedToRemoveDialog'
|
||||||
component: 'ConfirmRelatedToRemoveDialog'
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,8 +115,7 @@ export default class HciNode extends HarvesterResource {
|
|||||||
promptRemove(resources = this) {
|
promptRemove(resources = this) {
|
||||||
this.$dispatch('promptModal', {
|
this.$dispatch('promptModal', {
|
||||||
resources,
|
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()));
|
const hasUpgradeAccess = !!schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase()));
|
||||||
|
|
||||||
if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) {
|
if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) {
|
||||||
const latestUpgrade = this.$getters['all'](HCI.UPGRADE).find((upgrade) => upgrade.isLatestUpgrade);
|
|
||||||
|
|
||||||
out.unshift({
|
out.unshift({
|
||||||
action: 'goToAirgapUpgrade',
|
action: 'goToAirgapUpgrade',
|
||||||
enabled: true,
|
enabled: true,
|
||||||
icon: 'icon icon-refresh',
|
icon: 'icon icon-refresh',
|
||||||
label: this.t('harvester.upgradePage.upgrade'),
|
label: this.t('harvester.upgradePage.upgrade'),
|
||||||
disabled: !!latestUpgrade && latestUpgrade?.isUpgradeSucceeded
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "harvester",
|
"name": "harvester",
|
||||||
"description": "Rancher UI Extension for Harvester",
|
"description": "Rancher UI Extension for Harvester",
|
||||||
"version": "1.5.1-rc2",
|
"version": "1.5.1-rc4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"rancher": {
|
"rancher": {
|
||||||
"annotations": {
|
"annotations": {
|
||||||
|
|||||||
Reference in New Issue
Block a user