Commit 30cb40a
committed
fix(preferences): show template reset button when inherited template is resolved
The showTemplateResetButton:false override was added as a workaround
when inheritedTemplate was always empty in the user Preferences context
(because resolveEditorProps was discarding the loadState fallback).
Now that resolveEditorProps correctly falls back to the PHP-injected
system-level footer template when no admin-level template is configured,
inheritedTemplate is always properly resolved. Remove the guard so the
editor's own showResetTemplateButton computed takes over:
- hidden when currentTemplate == inheritedTemplate (nothing to reset)
- shown when the user's template differs from the inherited default
This allows users to reset just their footer template back to the
inherited default (instance admin > group admin > system default)
without having to clear their entire preference.
Signed-off-by: Vitor Mattos <[email protected]>1 parent c9729ca commit 30cb40a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments