| @@ -36,11 +36,15 @@ | ||
| 36 | 36 | return isList ? lines[index] : lines; |
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | 39 | export const StatusIndicator = () => { |
| 40 | + const leavingPage = useStatusStore((s) => s.leavingPage); | |
| 40 | 41 | const { type, label } = useStatusStore((s) => s.statuses.at(-1)) ?? {}; |
| 41 | 42 | const lines = useMemo(() => linesFor(label)[type], [label, type]); |
| 42 | - const text = useCurrentLine(lines); | |
| 43 | + const currentLine = useCurrentLine(lines); | |
| 44 | + const text = leavingPage | |
| 45 | + ? __('Refreshing the page to show your changes…', 'extendify-local') | |
| 46 | + : currentLine; | |
| 43 | 47 | |
| 44 | 48 | if (!text) return null; |
| 45 | 49 | |
| 46 | 50 | return ( |