mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Updated error and info boxes in publishing flow
Refs https://github.com/TryGhost/Team/issues/1544
This commit is contained in:
parent
cc8dd9dedf
commit
513c8655e4
4 changed files with 13 additions and 4 deletions
|
@ -54,7 +54,6 @@
|
||||||
|
|
||||||
{{#if this.errorMessage}}
|
{{#if this.errorMessage}}
|
||||||
<p class="error gh-box gh-box-error mt3 mb3">
|
<p class="error gh-box gh-box-error mt3 mb3">
|
||||||
{{svg-jar "warning"}}
|
|
||||||
{{this.errorMessage}}
|
{{this.errorMessage}}
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -68,7 +68,7 @@ export default class PublishFlowOptions extends Component {
|
||||||
let errorMessage = '';
|
let errorMessage = '';
|
||||||
|
|
||||||
if (isServerUnreachableError(e)) {
|
if (isServerUnreachableError(e)) {
|
||||||
errorMessage = 'Unable to connect, please check your internet connection and try again';
|
errorMessage = 'Unable to connect, please check your internet connection and try again.';
|
||||||
} else if (e && isString(e)) {
|
} else if (e && isString(e)) {
|
||||||
errorMessage = e;
|
errorMessage = e;
|
||||||
} else if (e && isArray(e)) {
|
} else if (e && isArray(e)) {
|
||||||
|
|
|
@ -636,7 +636,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-publish-types + .gh-box {
|
.gh-publish-types + .gh-box {
|
||||||
margin-top: 12px;
|
margin: 16px 0 0;
|
||||||
|
padding: 16px 20px;
|
||||||
|
font-size: 1.45rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-publish-schedule .gh-radio {
|
.gh-publish-schedule .gh-radio {
|
||||||
|
@ -772,6 +774,14 @@
|
||||||
line-height: 1.35em;
|
line-height: 1.35em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-publish-confirmation + .gh-box-error {
|
||||||
|
margin: -4rem 0 4.8rem;
|
||||||
|
padding: 16px 20px;
|
||||||
|
border: 0;
|
||||||
|
background: rgba(245,11,35,.05);
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
.gh-revert-to-draft {
|
.gh-revert-to-draft {
|
||||||
color: var(--green-d1);
|
color: var(--green-d1);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
Loading…
Add table
Reference in a new issue