Преглед на файлове

Fixes incorrect messaging on patch created notification

main
Ramin Tadayon преди 1 година
родител
ревизия
ebe7dc2075
No known key found for this signature in database 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;
}

Зареждане…
Отказ
Запис