Skip to content

Commit

Permalink
fix shutdown bottom order
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Nov 2, 2023
1 parent c7748aa commit 11840ed
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 11840ed

Please sign in to comment.