Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clysto committed Jul 16, 2024
1 parent 1cfe611 commit 967032a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion warpgate-web/src/admin/Target.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function remove () {
}
async function toggleRole (role: Role) {
if (role.id in roleIsAllowed) {
if (roleIsAllowed[role.id]) {
await api.deleteTargetRole({
id: target.id,
roleId: role.id,
Expand Down
2 changes: 1 addition & 1 deletion warpgate-web/src/admin/User.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function remove () {
}
async function toggleRole (role: Role) {
if (role.id in roleIsAllowed) {
if (roleIsAllowed[role.id]) {
await api.deleteUserRole({
id: user.id,
roleId: role.id,
Expand Down
1 change: 1 addition & 0 deletions warpgate-web/src/common/CopyButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let successVisible = false
let button: HTMLElement
async function _click () {
if (disabled) return
successVisible = true
copyTextToClipboard(text)
setTimeout(() => {
Expand Down

0 comments on commit 967032a

Please sign in to comment.