mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 09:37:29 -04:00
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:
parent
981a20e84f
commit
cdc64d18c4
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue