Skip to content

Commit 3187b33

Browse files
committed
feeback 1
1 parent 6355c70 commit 3187b33

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

@xen-orchestra/lite/src/libs/xen-api/operations/host-operations.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ export function createHostOperations(xenApi: XenApi) {
1919
const clearHost = async (hostRef: HostRef, force: boolean) => {
2020
await disable(hostRef)
2121

22-
try {
23-
await evacuate(hostRef)
24-
} catch (error) {
25-
if (!force) {
26-
await enable(hostRef)
27-
28-
throw error
29-
}
30-
console.error(`Host evacuation failed, forcing reboot of ${hostRef}:`, error)
22+
try {
23+
await evacuate(hostRef)
24+
} catch (error) {
25+
if (!force) {
26+
await enable(hostRef)
27+
28+
throw error
3129
}
30+
console.error(`Host evacuation failed, forcing reboot of ${hostRef}:`, error)
3231
}
32+
}
3333

3434
return {
3535
powerOn,
@@ -38,7 +38,6 @@ export function createHostOperations(xenApi: XenApi) {
3838

3939
await reboot(hostRef)
4040
},
41-
4241
cleanShutdown: async (hostRef: HostRef) => {
4342
await clearHost(hostRef, false)
4443

@xen-orchestra/lite/src/modules/host/components/actions/shutdown/HostShutdownButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ const {
3636
function shutdownHost() {
3737
return openActionModal({
3838
props: {
39-
accent: 'warning',
39+
accent: 'info',
4040
action: 'shutdown',
4141
object: 'host',
4242
hostName: host.name_label,
43-
icon: 'status:warning-picto',
43+
icon: 'status:info-picto',
4444
},
4545
events: {
4646
onConfirm: async () => {

@xen-orchestra/lite/src/modules/host/components/actions/start/HostStartButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ const {
3636
function startHost() {
3737
return openActionModal({
3838
props: {
39-
accent: 'warning',
39+
accent: 'info',
4040
action: 'start',
4141
object: 'host',
4242
hostName: host.name_label,
43-
icon: 'status:warning-picto',
43+
icon: 'status:info-picto',
4444
},
4545
events: {
4646
onConfirm: async () => {

0 commit comments

Comments
 (0)