Skip to content

Commit

Permalink
[UI] EVEREST-1596 Create Backup Schedule option no longer visible in …
Browse files Browse the repository at this point in the history
…wizard if RBAC is enabled #797
  • Loading branch information
dianabirs authored Oct 29, 2024
1 parent e330f7e commit 1e163e1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,17 @@ const Schedules = ({ disableCreateButton = false }: Props) => {
const { watch, setValue } = useFormContext();
const dbWizardMode = useDatabasePageMode();
const {
defaultValues: { schedules: defaultDbSchedules, dbName },
defaultValues: { schedules: defaultDbSchedules },
} = useDatabasePageDefaultValues(dbWizardMode);
const [openScheduleModal, setOpenScheduleModal] = useState(false);
const [mode, setMode] = useState<'new' | 'edit'>('new');
const [selectedScheduleName, setSelectedScheduleName] = useState<string>('');

const [dbType, k8sNamespace, formSchedules] = watch([
const [dbType, k8sNamespace, formSchedules, dbName] = watch([
DbWizardFormFields.dbType,
DbWizardFormFields.k8sNamespace,
DbWizardFormFields.schedules,
DbWizardFormFields.dbName,
]);

const { canCreate, canRead } = useRBACPermissions(
Expand Down

0 comments on commit 1e163e1

Please sign in to comment.