aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:18:12 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-04 10:11:59 +0000
commitb37017a19c9006efa40a55fb2ee9df12687483ef (patch)
treeaa5621b6f1ad9a7f91d3aefad166304f83b18e8c
parent01ee29c0d568f878614d2bbb9202f220735cb594 (diff)
downloadnextcloud-server-b37017a19c9006efa40a55fb2ee9df12687483ef.tar.gz
nextcloud-server-b37017a19c9006efa40a55fb2ee9df12687483ef.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);
},
/**