change reload to restart & tooltip

pull/14723/head
Steven Powell 2022-08-03 12:45:46 -07:00
parent 0eb74556dc
commit 5abe3b51e0
3 changed files with 13 additions and 3 deletions

View File

@ -97,7 +97,7 @@ static QString getPauseLabel(bool isPaused)
static QString getStartLabel(bool isRunning)
{
if (isRunning) {
return "Reload";
return "Restart";
}
return "Start";
}
@ -124,6 +124,11 @@ void AdvancedView::update(Cluster cluster)
#endif
pauseButton->setText(getPauseLabel(isPaused));
startButton->setText(getStartLabel(isRunning));
QString startToolTip = "";
if (isRunning) {
startToolTip = "Restart the Kubernetes API";
}
startButton->setToolTip(startToolTip);
}
void AdvancedView::setSelectedClusterName(QString cluster)

View File

@ -56,7 +56,7 @@ static QString getPauseLabel(bool isPaused)
static QString getStartLabel(bool isRunning)
{
if (isRunning) {
return "Reload";
return "Restart";
}
return "Start";
}
@ -82,6 +82,11 @@ void BasicView::update(Cluster cluster)
#endif
pauseButton->setText(getPauseLabel(isPaused));
startButton->setText(getStartLabel(isRunning));
QString startToolTip = "";
if (isRunning) {
startToolTip = "Restart the Kubernetes API";
}
startButton->setToolTip(startToolTip);
}
void BasicView::disableButtons()

View File

@ -92,7 +92,7 @@ static QString getPauseLabel(bool isPaused)
static QString getStartLabel(bool isRunning)
{
if (isRunning) {
return "Reload";
return "Restart";
}
return "Start";
}