Browse Source

CustomCategory: tool tips

master
parent
commit
43cc32e0c3
  1. 1
      lang/en.json
  2. 2
      src/customCategory.js

1
lang/en.json

@ -11,6 +11,7 @@
"apply": "Apply", "apply": "Apply",
"tip-tutorial": "Check out the [Tutorial]", "tip-tutorial": "Check out the [Tutorial]",
"customCategory:header": "Custom categories", "customCategory:header": "Custom categories",
"customCategory:clone": "Clone as custom category",
"customCategory:create": "Create custom category", "customCategory:create": "Create custom category",
"customCategory:list": "List popular custom categories", "customCategory:list": "List popular custom categories",
"copied-clipboard": "Copied to clipboard", "copied-clipboard": "Copied to clipboard",

2
src/customCategory.js

@ -255,6 +255,7 @@ hooks.register('category-overpass-init', (category) => {
}) })
category.tools.add(category.tabEdit) category.tools.add(category.tabEdit)
category.tabEdit.header.innerHTML = '<i class="fa fa-pen"></i>' category.tabEdit.header.innerHTML = '<i class="fa fa-pen"></i>'
category.tabEdit.header.title = lang('edit')
category.tabEdit.on('select', () => { category.tabEdit.on('select', () => {
category.tabEdit.unselect() category.tabEdit.unselect()
editCustomCategory(id, category) editCustomCategory(id, category)
@ -296,6 +297,7 @@ hooks.register('category-overpass-init', (category) => {
}) })
category.tools.add(category.tabClone) category.tools.add(category.tabClone)
category.tabClone.header.innerHTML = '<i class="fa fa-clone"></i>' category.tabClone.header.innerHTML = '<i class="fa fa-clone"></i>'
category.tabClone.header.title = lang('customCategory:clone')
category.tabClone.on('select', () => { category.tabClone.on('select', () => {
category.tabClone.unselect() category.tabClone.unselect()

Loading…
Cancel
Save