fix: Restore default status tooltip when no status message is provided

If the status is updated but no explicit message is provided (for
example, if the status check succeeded) the default tooltip (from the
template) is now set to prevent a mismatch between the status and the
tooltip (for example, if the configuration is fixed after a failed
status check).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2024-07-29 12:18:12 +02:00 committed by Andy Scherzinger
parent 981a20e84f
commit cdc64d18c4

View file

@ -1340,9 +1340,10 @@ MountConfigListView.prototype = _.extend({
if (status !== null) {
$statusSpan.show();
}
if (typeof message === 'string') {
$statusSpan.attr('title', message);
if (typeof message !== 'string') {
message = t('files_external', 'Click to recheck the configuration');
}
$statusSpan.attr('title', message);
},
/**