From 79ada00a0194e0b230bebcc04f6b17feef0c4548 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 11 Apr 2022 09:57:38 +0300 Subject: [PATCH] don't show reset-name on local classic styles --- edit/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/base.js b/edit/base.js index c52ef1f7..d4443461 100644 --- a/edit/base.js +++ b/edit/base.js @@ -132,7 +132,7 @@ function EditorHeader() { nameEl.title = isCustomName ? t('customNameHint') : ''; nameEl.on('input', () => { editor.updateName(true); - resetEl.hidden = false; + resetEl.hidden = !editor.style.customName; }); resetEl.hidden = !editor.style.customName; resetEl.onclick = () => {