From dd2f0bd417c5ad97875c4707bc634f22ffe3d163 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 7 Oct 2019 11:19:02 +0200 Subject: [PATCH] Add tooltip to the usage bar --- www/common/translations/messages.fr.json | 4 +++- www/common/translations/messages.json | 4 +++- www/drive/inner.js | 1 + www/teams/inner.js | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/www/common/translations/messages.fr.json b/www/common/translations/messages.fr.json index 153885179..5ede7e788 100644 --- a/www/common/translations/messages.fr.json +++ b/www/common/translations/messages.fr.json @@ -1218,5 +1218,7 @@ "team_pendingOwner": "(en attente)", "team_pendingOwnerTitle": "Cet administrateur n'a pas encore accepté l'offre de devenir propriétaire de l'équipe.", "team_demoteMeConfirm": "Vous êtes sur le point de renoncer à vos droits. Vous ne serez pas en mesure d'annuler cette action. Continuer ?", - "team_title": "Équipe : {0}" + "team_title": "Équipe : {0}", + "team_quota": "Limite de stockage de votre équipe", + "drive_quota": "Votre limite de stockage" } diff --git a/www/common/translations/messages.json b/www/common/translations/messages.json index 2dc7270b3..ddc6c8124 100644 --- a/www/common/translations/messages.json +++ b/www/common/translations/messages.json @@ -1218,5 +1218,7 @@ "team_pendingOwner": "(pending)", "team_pendingOwnerTitle": "This administrator has not accepted the ownership offer yet.", "team_demoteMeConfirm": "You are about to give up your rights. You will not be able to undo this action. Are you sure?", - "team_title": "Team: {0}" + "team_title": "Team: {0}", + "team_quota": "Your team's storage limit", + "drive_quota": "Your storage limit" } diff --git a/www/drive/inner.js b/www/drive/inner.js index ed986bf32..360944bbd 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -163,6 +163,7 @@ define([ common.createUsageBar(null, function (err, $limitContainer) { if (err) { return void DriveUI.logError(err); } APP.$limit = $limitContainer; + $limitContainer.attr('title', Messages.drive_quota); }, true); } diff --git a/www/teams/inner.js b/www/teams/inner.js index 4f0293d84..bb5422f3a 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -257,6 +257,7 @@ define([ APP.usageBar = common.createUsageBar(APP.team, function (err, $limitContainer) { if (err) { return void DriveUI.logError(err); } driveAPP.$limit = $limitContainer; + $limitContainer.attr('title', Messages.team_quota); }, true); driveAPP.team = id; var drive = DriveUI.create(common, {