From cdc64d18c49f79dd67558c7afbe58fca744dc770 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Mon, 29 Jul 2024 12:18:12 +0200 Subject: fix: Restore default status tooltip when no status message is provided MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/files_external/js/settings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/files_external') 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); }, /** -- cgit v1.2.3