fix(inout): 메일 창 — 연결 전 아래 줄 숨김, redirect_uri_mismatch 대비 등록할 주소 안내
- .io-dlg-footbar 의 display:flex 가 hidden 속성을 덮어써 연결 전에도 [메일 발송]·[연결 끊기]가 보이던 문제 → .io/.io-dlg/.io-viewer 안의 [hidden] 은 늘 숨김. - 구글이 redirect_uri_mismatch 로 막으면 ERP 로 돌아오지 않으므로, 연결 안내에 구글 클라우드 "승인된 리디렉션 URI"에 넣을 정확한 주소(callback_url)를 미리 보여 준다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -241,6 +241,7 @@ def body(c):
|
||||
who["u"] = buyer
|
||||
pv = c.get("/inout/orders/%d/mail" % oid3).json()
|
||||
assert pv["connected"] is False and pv["connect_url"].startswith("/inout/gmail/connect?next=")
|
||||
assert pv["callback_url"].endswith("/inout/gmail/callback") # 구글에 등록할 주소 안내
|
||||
assert pv["to"] == "factory-%s@x.com" % tag and pv["subject"].startswith("[발주] ") and "가 단품" in pv["html"]
|
||||
r = c.post("/inout/orders/%d/mail" % oid3, json={"to": pv["to"]})
|
||||
assert r.status_code == 409 and r.json()["reconnect"] is True # 연결 전엔 못 보냄
|
||||
|
||||
Reference in New Issue
Block a user