Skip to content

Commit

Permalink
fix: do not disable create service account button for SAML mode
Browse files Browse the repository at this point in the history
It was a copy-paste error.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Dec 14, 2024
1 parent b36198a commit d75ae45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/views/omni/Users/ServiceAccounts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ included in the LICENSE file.
<template>
<div class="flex flex-col gap-2">
<div class="flex justify-end">
<t-button @click="openUserCreate" icon="plus" icon-position="left" type="highlighted" :disabled="!canManageUsers || authType === AuthType.SAML">Create Service Account</t-button>
<t-button @click="openUserCreate" icon="plus" icon-position="left" type="highlighted" :disabled="!canManageUsers">Create Service Account</t-button>
</div>
<t-list :opts="watchOpts" pagination class="flex-1" search
@items-update="fetchAccounts"
Expand Down Expand Up @@ -38,7 +38,6 @@ import ServiceAccountItem from "@/views/omni/Users/ServiceAccountItem.vue";
import TButton from "@/components/common/Button/TButton.vue";
import { Resource } from "@/api/grpc";
import { canManageUsers } from "@/methods/auth";
import { AuthType, authType } from "@/methods";
import { Ref, watch } from "vue";
import { ManagementService } from "@/api/omni/management/management.pb";
import { ref } from "vue";
Expand Down

0 comments on commit d75ae45

Please sign in to comment.