瀏覽代碼

Fixes incorrect messaging on patch created notification

main
Ramin Tadayon 1 年之前
父節點
當前提交
ebe7dc2075
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 79D60DDE3DFB95F5
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/plus/webviews/patchDetails/patchDetailsWebview.ts

+ 3
- 1
src/plus/webviews/patchDetails/patchDetailsWebview.ts 查看文件

@ -381,15 +381,17 @@ export class PatchDetailsWebviewProvider
async function showNotification() {
const view = { title: 'View Patch' };
const copy = { title: 'Copy Link' };
let copied = false;
while (true) {
const result = await window.showInformationMessage(
'Cloud Patch successfully created \u2014 link copied to the clipboard',
`Cloud Patch successfully created${copied ? '\u2014 link copied to the clipboard' : ''}`,
view,
copy,
);
if (result === copy) {
void env.clipboard.writeText(draft.deepLinkUrl);
copied = true;
continue;
}

Loading…
取消
儲存