mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
02e77afcd1
commit
c6dce043a7
406 files changed
+1590
-1580
No files matched your search
@@ -50,7 +50,7 @@ export class CommandContainer extends React.Component<CommandContainerProps> {
|
||||
|
||||
private runCommand(command: CommandRegistration) {
|
||||
command.action({
|
||||
entity: catalogEntityRegistry.activeEntity
|
||||
entity: catalogEntityRegistry.activeEntity,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ export class CommandDialog extends React.Component {
|
||||
const registry = CommandRegistry.getInstance();
|
||||
|
||||
const context = {
|
||||
entity: this.activeEntity
|
||||
entity: this.activeEntity,
|
||||
};
|
||||
|
||||
return registry.getItems().filter((command) => {
|
||||
@@ -86,13 +86,13 @@ export class CommandDialog extends React.Component {
|
||||
|
||||
if (command.scope === "global") {
|
||||
command.action({
|
||||
entity: this.activeEntity
|
||||
entity: this.activeEntity,
|
||||
});
|
||||
} else if(this.activeEntity) {
|
||||
navigate(clusterViewURL({
|
||||
params: {
|
||||
clusterId: this.activeEntity.metadata.uid
|
||||
}
|
||||
clusterId: this.activeEntity.metadata.uid,
|
||||
},
|
||||
}));
|
||||
broadcastMessage(`command-palette:run-action:${this.activeEntity.metadata.uid}`, command.id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user