@@ -151,7 +151,10 @@ define(function (require, exports, module) {
151151 closePopup ( ) ; // close any existing popup first
152152
153153 // Render template with basic data first for instant response
154- const renderedTemplate = Mustache . render ( loginTemplate , { Strings} ) ;
154+ const renderedTemplate = Mustache . render ( loginTemplate , {
155+ Strings,
156+ getProLink : brackets . config . purchase_url
157+ } ) ;
155158 $popup = $ ( renderedTemplate ) ;
156159
157160 $ ( "body" ) . append ( $popup ) ;
@@ -352,8 +355,9 @@ define(function (require, exports, module) {
352355 if ( ! $popup || ! entitlements ) {
353356 return ;
354357 }
355-
358+ // entitlements will always be present for login popup.
356359 // Update plan information
360+ const $getProLink = $popup . find ( '.get-phoenix-pro-profile' ) ;
357361 if ( entitlements . plan ) {
358362 const $planName = $popup . find ( '.user-plan-name' ) ;
359363
@@ -371,18 +375,22 @@ define(function (require, exports, module) {
371375 <i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
372376 </span>` ;
373377 $planName . addClass ( 'user-plan-paid' ) . html ( proTitle ) ;
378+ $getProLink . removeClass ( 'forced-hidden' ) ;
374379 } else {
375380 // For paid users: regular plan name with icon
376381 const proTitle = `<span class="phoenix-pro-title">
377382 <span class="pro-plan-name">${ entitlements . plan . name } </span>
378383 <i class="fa-solid fa-feather" style="margin-left: 3px;"></i>
379384 </span>` ;
380385 $planName . addClass ( 'user-plan-paid' ) . html ( proTitle ) ;
386+ $getProLink . addClass ( 'forced-hidden' ) ;
381387 }
382388 } else {
383389 // Use simple text for free users
384390 $planName . addClass ( 'user-plan-free' ) . text ( entitlements . plan . name ) ;
385391 }
392+ } else {
393+ $getProLink . removeClass ( 'forced-hidden' ) ;
386394 }
387395
388396 // Update quota section if available
@@ -432,7 +440,8 @@ define(function (require, exports, module) {
432440 titleText : "Ai Quota Used" ,
433441 usageText : "100 / 200 credits" ,
434442 usedPercent : 0 ,
435- Strings : Strings
443+ Strings : Strings ,
444+ getProLink : brackets . config . purchase_url
436445 } ;
437446
438447 // Note: We don't await here to keep popup display instant
0 commit comments