Skip to content

Commit 1326f80

Browse files
committed
feat: change publish icon to share icon
1 parent ad4c649 commit 1326f80

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

src/extensions/default/Phoenix/images/globe2.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Loading

src/extensions/default/Phoenix/serverSync.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ define(function (require, exports, module) {
211211
}
212212
Dialogs.showModalDialog(
213213
DefaultDialogs.DIALOG_ID_INFO,
214-
"Publish website?",
214+
"Publish and Share website?",
215215
`Quickly preview changes and share your website with others. Phoenix can publish this website for you at
216216
<a href="${_getProjectPreviewURL()}">${_getProjectPreviewURL()}</a>.
217-
The files you edit and save will be instantly published. Do you wish to publish your website?`,
217+
The files you edit and save will be instantly published. Do you wish to publish and share your website?`,
218218
[
219219
{
220220
className: Dialogs.DIALOG_BTN_CLASS_NORMAL,
@@ -282,7 +282,7 @@ define(function (require, exports, module) {
282282
id: syncButtonID,
283283
href: "#",
284284
class: "preview",
285-
title: "Click to publish site."
285+
title: "Click to publish and share this site."
286286
})
287287
.appendTo($("#main-toolbar .buttons"));
288288
$icon.on('click', ()=>{
@@ -296,7 +296,8 @@ define(function (require, exports, module) {
296296
}
297297

298298
setInterval(()=>{
299-
// periodically check
299+
// periodically check if the preview tab is manually closed by user. We do this by light polling as
300+
// we cannot attach an onTabClosed event to the tab.
300301
if(previewInProgress && (!tab || tab.closed)){
301302
previewInProgress = false;
302303
}

src/extensions/default/Phoenix/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
}
99

1010
.preview {
11-
background-image: url("./images/globe2.svg");
11+
background-image: url("./images/share-fill.svg");
1212
}

0 commit comments

Comments
 (0)