mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Adding warning to Dashboard when Internet is down.
This commit is contained in:
parent
0f232fd533
commit
47b4da1cfe
6 changed files with 28 additions and 27 deletions
|
|
@ -1644,19 +1644,19 @@ export function HandPointMessage({children, size = null}) {
|
|||
</Message>
|
||||
}
|
||||
|
||||
export function WarningMessage({children, size = null}) {
|
||||
export function WarningMessage({children, size = null, icon='exclamation'}) {
|
||||
// Use color='yellow' because "warning" does not work.
|
||||
return <Message color='yellow' icon size={size}>
|
||||
<SIcon name='exclamation'/>
|
||||
<SIcon name={icon}/>
|
||||
<Message.Content>
|
||||
{children}
|
||||
</Message.Content>
|
||||
</Message>
|
||||
}
|
||||
|
||||
export function ErrorMessage({children, size = null}) {
|
||||
export function ErrorMessage({children, size = null, icon='exclamation'}) {
|
||||
return <Message error icon size={size}>
|
||||
<SIcon name='exclamation'/>
|
||||
<SIcon name={icon}/>
|
||||
<Message.Content>{children}</Message.Content>
|
||||
</Message>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,16 +155,13 @@ export const OutdatedZimsMessage = ({onClick}) => {
|
|||
}
|
||||
|
||||
export const KiwixRestartMessage = () => {
|
||||
return <Message icon warning>
|
||||
<SIcon name='exclamation'/>
|
||||
<Message.Content>
|
||||
<Message.Header>Kiwix must be restarted</Message.Header>
|
||||
<p>New Zim files have been downloaded; you must restart your containers.</p>
|
||||
return <WarningMessage>
|
||||
<Message.Header>Kiwix must be restarted</Message.Header>
|
||||
<p>New Zim files have been downloaded; you must restart your containers.</p>
|
||||
|
||||
<p>Run the following to restart your containers:</p>
|
||||
<pre> docker-compose restart</pre>
|
||||
</Message.Content>
|
||||
</Message>
|
||||
<p>Run the following to restart your containers:</p>
|
||||
<pre> docker-compose restart</pre>
|
||||
</WarningMessage>
|
||||
}
|
||||
|
||||
const ZimSearchEntry = ({zimId, onTag, onUntag, entry}) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue