Highlighted successful in the theme activation modal (#16454)

refs https://github.com/TryGhost/Team/issues/2713

- currently, it's not clear enough that if the theme activation was successful
- highlighting "successful" makes it easier to know the main action was successful even though there are errors to fix
This commit is contained in:
Sodbileg Gansukh 2023-03-22 15:54:52 +08:00 committed by GitHub
parent eb5ed7dda8
commit 818ea94e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<header class="modal-header">
<h1 data-test-theme-warnings-title>
{{#if @data.canActivate}}
{{@data.title}} with {{#if @data.errors}}errors{{else}}warnings{{/if}}
{{{@data.title}}} with {{#if @data.errors}}errors{{else}}warnings{{/if}}
{{else}}
{{@data.title}}
{{/if}}

View File

@ -122,7 +122,7 @@ export default class ThemeManagementService extends Service {
if (!isEmpty(warnings) || !isEmpty(errors)) {
resultModal = this.modals.open('modals/design/theme-errors', {
title: 'Activation successful',
title: 'Activation <span class="green">successful</span>',
canActivate: true,
warnings,
errors