From 9e04c57cab8095277398cbcee6fa4ebd904dcf85 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 9 Mar 2021 20:56:29 -0500
Subject: changed field unchanged -> googleDocUnchanged.  cleaned up some other
 code.

---
 src/client/views/PropertiesButtons.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/client/views/PropertiesButtons.tsx')

diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx
index e418a6f3c..bf72dbdba 100644
--- a/src/client/views/PropertiesButtons.tsx
+++ b/src/client/views/PropertiesButtons.tsx
@@ -131,7 +131,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
         const title = (() => {
             switch (this.openHover) {
                 default:
-                case UtilityButtonState.Default: return `${!dataDoc?.unchanged ? "Pull from" : "Fetch"} Google Docs`;
+                case UtilityButtonState.Default: return `${!dataDoc?.googleDocUnchanged ? "Pull from" : "Fetch"} Google Docs`;
                 case UtilityButtonState.OpenRight: return "Open in Right Split";
                 case UtilityButtonState.OpenExternally: return "Open in new Browser Tab";
             }
@@ -165,7 +165,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
                             this.clearPullColor();
                             PropertiesButtons.hasPulledHack = false;
                             targetDoc[Pulls] = NumCast(targetDoc[Pulls]) + 1;
-                            dataDoc.unchanged && runInAction(() => this.isAnimatingFetch = true);
+                            dataDoc.googleDocUnchanged && runInAction(() => this.isAnimatingFetch = true);
                         }
                     }}>
                     <FontAwesomeIcon className="documentdecorations-icon" size="lg" color="black"
@@ -173,7 +173,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
                         icon={(() => {
                             switch (this.openHover) {
                                 default:
-                                case UtilityButtonState.Default: return dataDoc.unchanged === false ? (this.pullIcon as any) : fetch;
+                                case UtilityButtonState.Default: return dataDoc.googleDocUnchanged === false ? (this.pullIcon as any) : fetch;
                                 case UtilityButtonState.OpenRight: return "arrow-alt-circle-right";
                                 case UtilityButtonState.OpenExternally: return "share";
                             }
-- 
cgit v1.2.3-70-g09d2

