aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:18:12 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-09-04 09:46:17 +0200
commit26919835e7beb9d19542b5cb05327de9c937f541 (patch)
tree50dd368dedf9e53573868813bc7b6fcf7a4a79f0
parentac1c8c423725712f712593d1cc97813996c92e78 (diff)
downloadnextcloud-server-26919835e7beb9d19542b5cb05327de9c937f541.tar.gz
nextcloud-server-26919835e7beb9d19542b5cb05327de9c937f541.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>
-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 475387cbfa2..7df4544392d 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1336,9 +1336,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);
},
/**