Add tooltip to the usage bar

pull/1/head
yflory 5 years ago
parent 39dbea0c10
commit dd2f0bd417

@ -1218,5 +1218,7 @@
"team_pendingOwner": "(en attente)", "team_pendingOwner": "(en attente)",
"team_pendingOwnerTitle": "Cet administrateur n'a pas encore accepté l'offre de devenir propriétaire de l'équipe.", "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_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"
} }

@ -1218,5 +1218,7 @@
"team_pendingOwner": "(pending)", "team_pendingOwner": "(pending)",
"team_pendingOwnerTitle": "This administrator has not accepted the ownership offer yet.", "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_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"
} }

@ -163,6 +163,7 @@ define([
common.createUsageBar(null, function (err, $limitContainer) { common.createUsageBar(null, function (err, $limitContainer) {
if (err) { return void DriveUI.logError(err); } if (err) { return void DriveUI.logError(err); }
APP.$limit = $limitContainer; APP.$limit = $limitContainer;
$limitContainer.attr('title', Messages.drive_quota);
}, true); }, true);
} }

@ -257,6 +257,7 @@ define([
APP.usageBar = common.createUsageBar(APP.team, function (err, $limitContainer) { APP.usageBar = common.createUsageBar(APP.team, function (err, $limitContainer) {
if (err) { return void DriveUI.logError(err); } if (err) { return void DriveUI.logError(err); }
driveAPP.$limit = $limitContainer; driveAPP.$limit = $limitContainer;
$limitContainer.attr('title', Messages.team_quota);
}, true); }, true);
driveAPP.team = id; driveAPP.team = id;
var drive = DriveUI.create(common, { var drive = DriveUI.create(common, {

Loading…
Cancel
Save