Adjust tooltip

This commit is contained in:
Bryan Housel
2018-11-26 17:35:38 -05:00
parent df91eb2959
commit 7170e93b39
4 changed files with 11 additions and 7 deletions
+1 -2
View File
@@ -439,8 +439,7 @@ en:
location: Location
add_fields: "Add field:"
lock:
brand: 'This brand name is locked. You can delete it or edit the tags in the "All tags" section.'
official: 'This official name is locked. You can delete it or edit the tags in the "All tags" section.'
suggestion: 'The "{label}" field is locked because there is a wikidata tag. You can delete it or edit the tags in the "All tags" section.'
background:
title: Background
description: Background settings
+1 -2
View File
@@ -536,8 +536,7 @@
"location": "Location",
"add_fields": "Add field:",
"lock": {
"brand": "This brand name is locked. You can delete it or edit the tags in the \"All tags\" section.",
"official": "This official name is locked. You can delete it or edit the tags in the \"All tags\" section."
"suggestion": "The \"{label}\" field is locked because there is a wikidata tag. You can delete it or edit the tags in the \"All tags\" section."
}
},
"background": {
+3 -1
View File
@@ -32,7 +32,9 @@ export function uiFieldText(field, context) {
var _brandTip;
if (field.id === 'brand') {
_brandTip = tooltip().title(t('inspector.lock.brand')).placement('bottom');
_brandTip = tooltip()
.title(t('inspector.lock.suggestion', { label: field.label }))
.placement('bottom');
}
+6 -2
View File
@@ -31,8 +31,12 @@ export function uiFieldLocalized(field, context) {
var _selection = d3_select(null);
var _multilingual = [];
var _isLocked = false;
var _brandTip = tooltip().title(t('inspector.lock.brand')).placement('bottom');
var _buttonTip = tooltip().title(t('translate.translate')).placement('left');
var _brandTip = tooltip()
.title(t('inspector.lock.suggestion', { label: field.label }))
.placement('bottom');
var _buttonTip = tooltip()
.title(t('translate.translate'))
.placement('left');
var _wikiTitles;
var _entity;