Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/services/html/login-popup.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="profile-popup">
<div class="profile-popup login-profile-popup">
<div class="popup-header">
<h1 class="popup-title">{{Strings.PROFILE_POP_TITLE}}</h1>
{{#trialInfo}}
<div class="trial-plan-info">
<span class="phoenix-pro-title-plain">
<span class="pro-plan-name">{{planName}}</span>
<span class="pro-plan-name user-plan-name">{{planName}}</span>
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/services/html/profile-popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="profile-popup">
<div class="profile-popup user-profile-popup">
<div class="popup-header">
<div class="user-profile-header">
<div class="user-avatar" style="background-color: {{avatarColor}};">
Expand Down
2 changes: 2 additions & 0 deletions src/services/login-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ define(function (require, exports, module) {

// Always reset local state regardless of server response
await _resetBrowserLogin();
await _verifyBrowserLogin();

if (response.ok) {
const result = await response.json();
Expand Down Expand Up @@ -373,6 +374,7 @@ define(function (require, exports, module) {
} catch (error) {
// Always reset local state even on network error
await _resetBrowserLogin();
await _verifyBrowserLogin();
console.error("Network error during logout:", error);
const dialog = Dialogs.showModalDialog(
DefaultDialogs.DIALOG_ID_ERROR,
Expand Down
1 change: 1 addition & 0 deletions src/services/login-desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ define(function (require, exports, module) {
return;
}
await _resetAccountLogin();
await _verifyLogin();
Dialogs.showModalDialog(
DefaultDialogs.DIALOG_ID_INFO,
Strings.SIGNED_OUT,
Expand Down
7 changes: 4 additions & 3 deletions src/services/profile-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ define(function (require, exports, module) {
effectiveEntitlements.trialDaysRemaining);
const trialInfoHtml = `<div class="trial-plan-info">
<span class="phoenix-pro-title-plain">
<span class="pro-plan-name">${planName}</span>
<span class="pro-plan-name user-plan-name">${planName}</span>
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
</span>
</div>`;
Expand Down Expand Up @@ -371,15 +371,15 @@ define(function (require, exports, module) {
const planName = StringUtils.format(Strings.PROMO_PRO_TRIAL_DAYS_LEFT,
entitlements.trialDaysRemaining);
const proTitle = `<span class="phoenix-pro-title-plain">
<span class="pro-plan-name">${planName}</span>
<span class="pro-plan-name user-plan-name">${planName}</span>
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
</span>`;
$planName.addClass('user-plan-paid').html(proTitle);
$getProLink.removeClass('forced-hidden');
} else {
// For paid users: regular plan name with icon
const proTitle = `<span class="phoenix-pro-title">
<span class="pro-plan-name">${entitlements.plan.name}</span>
<span class="pro-plan-name user-plan-name">${entitlements.plan.name}</span>
<i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
</span>`;
$planName.addClass('user-plan-paid').html(proTitle);
Expand Down Expand Up @@ -591,6 +591,7 @@ define(function (require, exports, module) {
_updateBranding(effectiveEntitlements);
} else {
console.log('Profile Menu: No active trial found');
_updateBranding(null);
}
} catch (error) {
console.error('Failed to initialize branding for trial users:', error);
Expand Down
Loading
Loading