@@ -25,13 +25,6 @@ import { useTheme } from "@material-ui/core/styles"
25
25
import FormHelperText from "@material-ui/core/FormHelperText"
26
26
import Button from "@material-ui/core/Button"
27
27
28
- export const Language = {
29
- messageLabel : "Message" ,
30
- backgroundColorLabel : "Background Color" ,
31
- updateBanner : "Update" ,
32
- previewBanner : "Preview" ,
33
- }
34
-
35
28
export interface ServiceBannerFormValues {
36
29
message ?: string
37
30
backgroundColor ?: string
@@ -109,7 +102,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
109
102
< Header
110
103
title = "Service Banner"
111
104
description = "Configure a banner that displays a message to all users"
112
- docsHref = "https://coder.com/docs/coder-oss/latest/admin/high-availability# service-banners"
105
+ docsHref = "https://coder.com/docs/coder-oss/latest/admin/service-banners"
113
106
/>
114
107
< Badges >
115
108
{ isEntitled ? < EntitledBadge /> : < DisabledBadge /> }
@@ -122,7 +115,6 @@ const ServiceBannerSettingsPage: React.FC = () => {
122
115
< FormControlLabel
123
116
control = {
124
117
< Switch
125
- { ...getFieldHelpers ( "enabled" ) }
126
118
color = "primary"
127
119
checked = { form . values . enabled }
128
120
onChange = { ( ) => {
@@ -142,7 +134,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
142
134
< TextField
143
135
{ ...getFieldHelpers ( "message" ) }
144
136
fullWidth
145
- label = { Language . messageLabel }
137
+ label = "Message"
146
138
variant = "outlined"
147
139
multiline
148
140
onChange = { ( e ) => {
@@ -162,7 +154,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
162
154
</ Stack >
163
155
164
156
< Stack spacing = { 0 } >
165
- < h3 > Background Color</ h3 >
157
+ < h3 > { " Background Color" } </ h3 >
166
158
< BlockPicker
167
159
color = { backgroundColor }
168
160
onChange = { ( color ) => {
@@ -197,14 +189,8 @@ const ServiceBannerSettingsPage: React.FC = () => {
197
189
</ Stack >
198
190
199
191
< Stack direction = "row" >
200
- < LoadingButton
201
- loading = { false }
202
- // aria-disabled={!editable}
203
- // disabled={!editable}
204
- type = "submit"
205
- variant = "contained"
206
- >
207
- { Language . updateBanner }
192
+ < LoadingButton loading = { false } type = "submit" variant = "contained" >
193
+ { "Update" }
208
194
</ LoadingButton >
209
195
</ Stack >
210
196
</ Stack >
0 commit comments