mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove hotbar name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0b7b90da93
commit
ec6dff205e
@ -211,8 +211,8 @@ export class Sidebar extends React.Component<Props> {
|
|||||||
const hotbarStore = HotbarStore.getInstance();
|
const hotbarStore = HotbarStore.getInstance();
|
||||||
const isAddedToActive = HotbarStore.getInstance().isAddedToActive(this.clusterEntity);
|
const isAddedToActive = HotbarStore.getInstance().isAddedToActive(this.clusterEntity);
|
||||||
const title = isAddedToActive
|
const title = isAddedToActive
|
||||||
? `Remove from hotbar ${hotbarStore.getActive().name}`
|
? "Remove from hotbar"
|
||||||
: `Add to hotbar ${hotbarStore.getActive().name}`;
|
: "Add to hotbar";
|
||||||
const onClick = isAddedToActive
|
const onClick = isAddedToActive
|
||||||
? () => hotbarStore.removeFromHotbar(metadata.uid)
|
? () => hotbarStore.removeFromHotbar(metadata.uid)
|
||||||
: () => hotbarStore.addToHotbar(this.clusterEntity);
|
: () => hotbarStore.addToHotbar(this.clusterEntity);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user