aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:18:12 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-09-04 23:19:37 +0200
commitcdc64d18c49f79dd67558c7afbe58fca744dc770 (patch)
tree000b6eca787d043cf0d0de8e7b9dc1c08a2b0e21 /apps/files_external
parent981a20e84f2ad2dece4b4b58d739eff51eb144e1 (diff)
downloadnextcloud-server-cdc64d18c49f79dd67558c7afbe58fca744dc770.tar.gz
nextcloud-server-cdc64d18c49f79dd67558c7afbe58fca744dc770.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.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 8021d698480..bb156b3da25 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);
},
/**