From 563f685f9baeafc8ea2c96544a73c3b350f1f9dc Mon Sep 17 00:00:00 2001 From: Jon D Date: Sun, 6 Nov 2016 11:30:52 +0000 Subject: [PATCH] Fix tooltip --- modules/operations/reflect.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/operations/reflect.js b/modules/operations/reflect.js index 51ae03afc..42b267df2 100644 --- a/modules/operations/reflect.js +++ b/modules/operations/reflect.js @@ -30,10 +30,13 @@ export function operationReflect(selectedIDs, context) { }; operation.tooltip = function() { - return t('operations.reflect.description'); + var disable = operation.disabled(); + return disable ? + t('operations.reflect.' + disable) : + t('operations.reflect.description'); }; - operation.id = 'flipHorizontal'; + operation.id = 'reflect'; operation.keys = [t('operations.reflect.key')]; operation.title = t('operations.reflect.title');