Skip to content

Commit

Permalink
Refactor password warning messages and add action button to each banner
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed May 6, 2024
1 parent a5ec97d commit a8616a5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/>
</cv-column>
</cv-row>
<cv-row v-if="piler_is_running && is_default_password_admin">
<cv-row v-if="is_default_password_admin">
<cv-column>
<NsInlineNotification
kind="warning"
Expand All @@ -31,19 +31,7 @@
/>
</cv-column>
</cv-row>
<!-- the button is displayed in the admin warning box, do not need to display twice -->
<cv-row v-if="piler_is_running && is_default_password_auditor && is_default_password_admin">
<cv-column>
<NsInlineNotification
kind="warning"
:title="$t('settings.password_warning', {user:'auditor@local'})"
:description="$t('settings.password_warning_description', {user:'auditor@local', password:'auditor'})"
:showCloseButton="false"
/>
</cv-column>
</cv-row>
<!-- only the admin password has been changed, let's display the button to go to piler -->
<cv-row v-if="piler_is_running && is_default_password_auditor && !is_default_password_admin">
<cv-row v-if="is_default_password_auditor">
<cv-column>
<NsInlineNotification
kind="warning"
Expand Down

0 comments on commit a8616a5

Please sign in to comment.