binwiederhier 3 лет назад
Родитель
Сommit
3d40acc26b
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      web/public/config.js
  2. 1 1
      web/src/components/UpgradeDialog.js

+ 1 - 1
web/public/config.js

@@ -6,7 +6,7 @@
 // During web development, you may change values here for rapid testing.
 
 var config = {
-    base_url: window.location.origin, // Set this to "https://127.0.0.1" to test against a different server
+    base_url: "https://127.0.0.1", // to test against a different server
     app_root: "/app",
     enable_login: true,
     enable_signup: true,

+ 1 - 1
web/src/components/UpgradeDialog.js

@@ -145,7 +145,7 @@ const UpgradeDialog = (props) => {
                             onChange={(ev) => setInterval(ev.target.checked ? SubscriptionInterval.YEAR : SubscriptionInterval.MONTH)}
                         />
                         <Typography component="span" variant="subtitle1">{t("account_upgrade_dialog_interval_yearly")}</Typography>
-                        {discount > 0 && <Chip label={`-${discount}%`} color="primary" size="small" sx={{ marginLeft: "5px" }}/>}
+                        {discount > 0 && <Chip label={`-${discount}%`} color="primary" size="small" variant={interval === SubscriptionInterval.YEAR ? "filled" : "outlined"} sx={{ marginLeft: "5px" }}/>}
                     </div>
                 </div>
             </DialogTitle>