From 11840eddd98e04b1fc2c19cc9fb8554ea5f20a09 Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Thu, 2 Nov 2023 00:43:28 +0000 Subject: [PATCH] fix shutdown bottom order --- .../pages/node/actions/node-actions-helper.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts b/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts index 236e9718a6..b4cad67aa2 100644 --- a/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts +++ b/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts @@ -71,18 +71,18 @@ export class NodeActionsHelper { }); } - this.options.push({ - name: 'actions.menu.turn-off', - actionName: 'shutdown', - icon: 'power_settings_new' - }); - this.options.push({ name: 'actions.menu.logs', actionName: 'logs', icon: 'subject', }); + this.options.push({ + name: 'actions.menu.turn-off', + actionName: 'shutdown', + icon: 'power_settings_new' + }); + // TODO: remove if the option will not be added again. Delete the translatable strings too. /* if (this.canBeUpdated) { @@ -129,10 +129,10 @@ export class NodeActionsHelper { this.terminal(); } else if (actionName === 'update') { this.update(); - } else if (actionName === 'shutdown') { - this.shutdown(); } else if (actionName === 'logs') { this.runtimeLogs(); + } else if (actionName === 'shutdown') { + this.shutdown(); } else if (actionName === null) { // Null is returned if the back button was pressed. this.back();