change reload to restart & tooltip
parent
0eb74556dc
commit
5abe3b51e0
|
@ -97,7 +97,7 @@ static QString getPauseLabel(bool isPaused)
|
||||||
static QString getStartLabel(bool isRunning)
|
static QString getStartLabel(bool isRunning)
|
||||||
{
|
{
|
||||||
if (isRunning) {
|
if (isRunning) {
|
||||||
return "Reload";
|
return "Restart";
|
||||||
}
|
}
|
||||||
return "Start";
|
return "Start";
|
||||||
}
|
}
|
||||||
|
@ -124,6 +124,11 @@ void AdvancedView::update(Cluster cluster)
|
||||||
#endif
|
#endif
|
||||||
pauseButton->setText(getPauseLabel(isPaused));
|
pauseButton->setText(getPauseLabel(isPaused));
|
||||||
startButton->setText(getStartLabel(isRunning));
|
startButton->setText(getStartLabel(isRunning));
|
||||||
|
QString startToolTip = "";
|
||||||
|
if (isRunning) {
|
||||||
|
startToolTip = "Restart the Kubernetes API";
|
||||||
|
}
|
||||||
|
startButton->setToolTip(startToolTip);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdvancedView::setSelectedClusterName(QString cluster)
|
void AdvancedView::setSelectedClusterName(QString cluster)
|
||||||
|
|
|
@ -56,7 +56,7 @@ static QString getPauseLabel(bool isPaused)
|
||||||
static QString getStartLabel(bool isRunning)
|
static QString getStartLabel(bool isRunning)
|
||||||
{
|
{
|
||||||
if (isRunning) {
|
if (isRunning) {
|
||||||
return "Reload";
|
return "Restart";
|
||||||
}
|
}
|
||||||
return "Start";
|
return "Start";
|
||||||
}
|
}
|
||||||
|
@ -82,6 +82,11 @@ void BasicView::update(Cluster cluster)
|
||||||
#endif
|
#endif
|
||||||
pauseButton->setText(getPauseLabel(isPaused));
|
pauseButton->setText(getPauseLabel(isPaused));
|
||||||
startButton->setText(getStartLabel(isRunning));
|
startButton->setText(getStartLabel(isRunning));
|
||||||
|
QString startToolTip = "";
|
||||||
|
if (isRunning) {
|
||||||
|
startToolTip = "Restart the Kubernetes API";
|
||||||
|
}
|
||||||
|
startButton->setToolTip(startToolTip);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BasicView::disableButtons()
|
void BasicView::disableButtons()
|
||||||
|
|
|
@ -92,7 +92,7 @@ static QString getPauseLabel(bool isPaused)
|
||||||
static QString getStartLabel(bool isRunning)
|
static QString getStartLabel(bool isRunning)
|
||||||
{
|
{
|
||||||
if (isRunning) {
|
if (isRunning) {
|
||||||
return "Reload";
|
return "Restart";
|
||||||
}
|
}
|
||||||
return "Start";
|
return "Start";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue