Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tikitko committed Nov 21, 2023
1 parent ed07a12 commit 96ee23a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ pub fn settings() -> Html {
type="radio"
name="flexRadioDefault"
id="flexRadioDefault2"
disabled={ *main_active_section == ActiveSection::None|| *in_progress }
disabled={ *main_active_section == ActiveSection::None || *in_progress }
checked={ *main_active_section == ActiveSection::Custom }
onclick={
let main_active_section = main_active_section.clone();
Expand All @@ -344,10 +344,10 @@ pub fn settings() -> Html {
type="text"
class="form-control"
id="floatingInput1"
placeholder="Имя профиля (уникальное)"
disabled={ *main_active_section != ActiveSection::Custom|| *in_progress }
placeholder="Имя профиля"
disabled={ *main_active_section != ActiveSection::Custom || *in_progress }
/>
<label for="floatingInput1">"Имя аккаунта (уникальное)"</label>
<label for="floatingInput1">"Имя профиля"</label>
</div>
<div class="form-floating mb-2">
<input
Expand All @@ -367,7 +367,7 @@ pub fn settings() -> Html {
class="form-control"
id="floatingInput3"
placeholder="Имя"
disabled={ *main_active_section != ActiveSection::Custom|| *in_progress }
disabled={ *main_active_section != ActiveSection::Custom || *in_progress }
/>
<label for="floatingInput3">"Имя"</label>
</div>
Expand All @@ -378,7 +378,7 @@ pub fn settings() -> Html {
class="form-control"
id="floatingInput4"
placeholder="Фамилия"
disabled={ *main_active_section != ActiveSection::Custom|| *in_progress }
disabled={ *main_active_section != ActiveSection::Custom || *in_progress }
/>
<label for="floatingInput4">"Фамилия"</label>
</div>
Expand Down

0 comments on commit 96ee23a

Please sign in to comment.