diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-07-29 12:18:12 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-09-05 04:18:38 +0200 |
commit | 65885fea339f67340e99cf031ae2c531fcdcb609 (patch) | |
tree | 1f7a722bc679b1aa74193298ebc1cf6208527bfe /apps/files_external | |
parent | 029626ba8fbcfd3b05f5db8f9cebb22eebcfcac2 (diff) | |
download | nextcloud-server-65885fea339f67340e99cf031ae2c531fcdcb609.tar.gz nextcloud-server-65885fea339f67340e99cf031ae2c531fcdcb609.zip |
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>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/js/settings.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 2ece2b56740..49e6cb42219 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -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); }, /** |