Skip to content

Commit

Permalink
fix(ui): not using password input for server grant
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeguo committed Jul 23, 2024
1 parent d9b6a70 commit a91b03d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ go.work
/cmd/bunker/__debug*

# Data
/bunker.yaml
/config.yaml
/database.sqlite3
/users.yaml
/ssh_host_*_key
Expand Down
5 changes: 3 additions & 2 deletions ui/pages/dashboard/users/[user_id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ async function deleteGrant({ id, server_user, server_id }: { id: string; server_
</script>

<template>
<SkeletonDashboard :title-name="$t('grants.title') + ' - ' + $route.params.user_id" title-icon="i-mdi-server-shield">
<SkeletonDashboard :title-name="$t('grants.title') + ' - ' + $route.params.user_id"
title-icon="i-mdi-server-shield">
<template #left>
<UCard :ui="uiCard">
<template #header>
Expand All @@ -99,7 +100,7 @@ async function deleteGrant({ id, server_user, server_id }: { id: string; server_
</UFormGroup>

<UFormGroup :label="$t('common.server_id')" name="server_id">
<UInput v-model="state.server_id" type="password" />
<UInput v-model="state.server_id" />
</UFormGroup>

<UButton type="submit" icon="i-mdi-check-circle" :label="$t('common.submit')" :loading="!!working"
Expand Down

0 comments on commit a91b03d

Please sign in to comment.