@bobfrankston/rmfmail 1.1.214 → 1.1.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/app.bundle.js +15 -3
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-viewer.js +24 -3
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +22 -3
- package/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-57760 → node_modules.npmglobalize-stash-45296}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -1960,6 +1960,18 @@ async function showAddContactDialog(nameIn, emailIn) {
|
|
|
1960
1960
|
dup = match;
|
|
1961
1961
|
} catch {
|
|
1962
1962
|
}
|
|
1963
|
+
let dupInfo = "";
|
|
1964
|
+
if (dup) {
|
|
1965
|
+
const nm = `<strong>${escapeText(dup.name || "(no name)")}</strong>`;
|
|
1966
|
+
if (dup.source === "discovered") {
|
|
1967
|
+
dupInfo = `<div class="mailx-modal-info">Found in <em>local discovered contacts</em> (auto-collected from your mail) as ${nm} \u2014 <strong>not yet in Google Contacts</strong>. Saving adds it to Google Contacts.</div>`;
|
|
1968
|
+
} else if (dup.source === "google") {
|
|
1969
|
+
dupInfo = `<div class="mailx-modal-info">Already in <strong>Google Contacts</strong> as ${nm}. Saving updates the name.</div>`;
|
|
1970
|
+
} else {
|
|
1971
|
+
dupInfo = `<div class="mailx-modal-info">Already saved as ${nm} (${escapeText(dup.source)}). Saving updates the name and syncs to Google Contacts.</div>`;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
const saveLabel = dup ? dup.source === "discovered" ? "Add to Google Contacts" : "Update" : "Save";
|
|
1963
1975
|
const backdrop = document.createElement("div");
|
|
1964
1976
|
backdrop.className = "mailx-modal-backdrop";
|
|
1965
1977
|
const panel = document.createElement("div");
|
|
@@ -1969,7 +1981,7 @@ async function showAddContactDialog(nameIn, emailIn) {
|
|
|
1969
1981
|
<span class="mailx-modal-title-text">${dup ? "Update contact" : "Add contact"}</span>
|
|
1970
1982
|
<button type="button" class="mailx-modal-close" id="ac-close" aria-label="Close">×</button>
|
|
1971
1983
|
</div>
|
|
1972
|
-
${
|
|
1984
|
+
${dupInfo}
|
|
1973
1985
|
<label class="mailx-modal-label">Name
|
|
1974
1986
|
<input class="mailx-modal-input" id="ac-name" type="text" value="${escapeText(dup?.name || nameIn || "")}" autofocus>
|
|
1975
1987
|
</label>
|
|
@@ -1982,7 +1994,7 @@ async function showAddContactDialog(nameIn, emailIn) {
|
|
|
1982
1994
|
<div class="mailx-modal-buttons">
|
|
1983
1995
|
<span class="mailx-modal-spacer"></span>
|
|
1984
1996
|
<button type="button" class="mailx-modal-btn" data-action="cancel">Cancel</button>
|
|
1985
|
-
<button type="button" class="mailx-modal-btn mailx-modal-btn-primary" data-action="save">${
|
|
1997
|
+
<button type="button" class="mailx-modal-btn mailx-modal-btn-primary" data-action="save">${escapeText(saveLabel)}</button>
|
|
1986
1998
|
</div>`;
|
|
1987
1999
|
backdrop.appendChild(panel);
|
|
1988
2000
|
document.body.appendChild(backdrop);
|
|
@@ -2003,7 +2015,7 @@ async function showAddContactDialog(nameIn, emailIn) {
|
|
|
2003
2015
|
close();
|
|
2004
2016
|
} catch (e) {
|
|
2005
2017
|
btn.disabled = false;
|
|
2006
|
-
btn.textContent =
|
|
2018
|
+
btn.textContent = saveLabel;
|
|
2007
2019
|
alert(`Couldn't save: ${e?.message || e}`);
|
|
2008
2020
|
}
|
|
2009
2021
|
});
|