update
This commit is contained in:
parent
f4e7d83c28
commit
9e1bc7e957
@ -69,7 +69,7 @@
|
||||
can_trade_global: userData["can_trade_global"] ? "true" : "false",
|
||||
role: value_role,
|
||||
bid: userData.bid.toString(),
|
||||
payout_bid: userData.payout_bid.toString()
|
||||
payout_bid: userData.payout_bid.toString(),
|
||||
},
|
||||
makeAuthHeaderForAxios(getAuthInfo()?.a)
|
||||
);
|
||||
@ -157,15 +157,31 @@
|
||||
class="toggle toggle-primary"
|
||||
/>
|
||||
</div>
|
||||
<button on:click={()=>{
|
||||
<div class="flex p-4 items-center gap-2">
|
||||
<p>Глобальная торговля:</p>
|
||||
<input
|
||||
bind:checked={userData["can_trade_global"]}
|
||||
type="checkbox"
|
||||
class="toggle toggle-primary"
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
on:click={() => {
|
||||
changeUserInfo();
|
||||
}} class="btn btn-primary text-base" disabled={changingUser || !canChangeUser}>
|
||||
}}
|
||||
class="btn btn-primary text-base"
|
||||
disabled={changingUser || !canChangeUser}
|
||||
>
|
||||
Сохранить
|
||||
{#if changingUser}
|
||||
<span class="loading loading-spinner"></span>
|
||||
{/if}
|
||||
</button>
|
||||
<a href={window.location.pathname.replace("change", "profile")} class="hidden" id="ref"></a>
|
||||
<a
|
||||
href={window.location.pathname.replace("change", "profile")}
|
||||
class="hidden"
|
||||
id="ref"
|
||||
></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user