Pārlūkot izejas kodu

Updates fetch messaging when its never fetched

main
Keith Daulton pirms 1 gada
vecāks
revīzija
78995bb74b
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 3
- 2
src/webviews/apps/plus/graph/GraphWrapper.tsx Parādīt failu

@ -1099,7 +1099,8 @@ export function GraphWrapper({
};
const renderFetchAction = () => {
const fetchedText = lastFetched && fromNow(new Date(lastFetched));
const lastFetchedDate = lastFetched && new Date(lastFetched);
const fetchedText = lastFetchedDate && lastFetchedDate.getTime() !== 0 ? fromNow(lastFetchedDate) : undefined;
let icon = 'sync';
let label = 'Fetch';
@ -1129,7 +1130,7 @@ export function GraphWrapper({
tooltip += ` ${remote}`;
fetchTooltip += ` ${remote}`;
}
const lastFetchedText = `\nLast fetched ${fetchedText}`;
const lastFetchedText = fetchedText ? `\nLast fetched ${fetchedText}` : '\nNever fetched';
tooltip += lastFetchedText;
fetchTooltip += lastFetchedText;

Notiek ielāde…
Atcelt
Saglabāt