Skip to content

Commit

Permalink
set the pods_table label to "Pods [selected namespace]"
Browse files Browse the repository at this point in the history
set the pods_table label to "Pods [selected namespace]" 
astefanutti#40
  • Loading branch information
593769290 authored Apr 25, 2019
1 parent 2bba7e4 commit 5324f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ class Dashboard {
let listPodsError;
// FIXME: should be cancellable
const promise = until(client.pods(current_namespace).get())
.spin(s => pods_table.setLabel(`${s} Pods`))
.succeed(_ => pods_table.setLabel('Pods'))
.spin(s => pods_table.setLabel(`${s} Pods {grey-fg}[${current_namespace}]{/grey-fg}`))
.succeed(_ => pods_table.setLabel(`Pods {grey-fg}[${current_namespace}]{/grey-fg}`))
.then(response => {
pods_list = JSON.parse(response.body.toString('utf8'));
pods_list.items = pods_list.items || [];
Expand Down

0 comments on commit 5324f2d

Please sign in to comment.