File tree 2 files changed +182
-178
lines changed
site/src/pages/TemplateSettingsPage
TemplateGeneralSettingsPage 2 files changed +182
-178
lines changed Original file line number Diff line number Diff line change 1
1
import { useMutation } from "@tanstack/react-query"
2
2
import { updateTemplateMeta } from "api/api"
3
3
import { UpdateTemplateMeta } from "api/typesGenerated"
4
- import { useDashboard } from "components/Dashboard/DashboardProvider"
5
4
import { displaySuccess } from "components/GlobalSnackbar/utils"
6
5
import { FC } from "react"
7
6
import { Helmet } from "react-helmet-async"
@@ -16,9 +15,6 @@ export const TemplateSettingsPage: FC = () => {
16
15
const { t } = useTranslation ( "templateSettingsPage" )
17
16
const navigate = useNavigate ( )
18
17
const { template } = useTemplateSettingsContext ( )
19
- const { entitlements } = useDashboard ( )
20
- const canSetMaxTTL =
21
- entitlements . features [ "advanced_template_scheduling" ] . enabled
22
18
const {
23
19
mutate : updateTemplate ,
24
20
isLoading : isSubmitting ,
@@ -38,7 +34,6 @@ export const TemplateSettingsPage: FC = () => {
38
34
< title > { pageTitle ( [ template . name , t ( "title" ) ] ) } </ title >
39
35
</ Helmet >
40
36
< TemplateSettingsPageView
41
- canSetMaxTTL = { canSetMaxTTL }
42
37
isSubmitting = { isSubmitting }
43
38
template = { template }
44
39
submitError = { submitError }
You can’t perform that action at this time.
0 commit comments