Skip to content

Commit 260f897

Browse files
committed
implement config safe oin dev mode
1 parent 9a2913b commit 260f897

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ example-*.json
1414
.dockerdata
1515

1616
secrets.yaml
17+
config.yaml
1718

1819
db

client/src/components/settings/form-buildpacks.vue

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
label="Name"
2727
required
2828
density="compact"
29+
readonly
2930
></v-text-field>
3031
</v-col>
3132
<v-col

client/src/components/settings/form-general.vue

+5-8
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
v-model="settings.env.KUBERO_WEBHOOK_URL"
6666
label="URL"
6767
required
68-
readonly
6968
></v-text-field>
7069
</v-col>
7170
</v-row>
@@ -78,7 +77,6 @@
7877
v-model="settings.env.KUBERO_WEBHOOK_SECRET"
7978
label="Secret"
8079
required
81-
readonly
8280
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
8381
:type="show ? 'text' : 'password'"
8482
@click:append="show = !show"
@@ -95,7 +93,7 @@
9593
md="2"
9694
>
9795
<v-switch
98-
v-model="settings.kubero.banner.enabled"
96+
v-model="settings.kubero.banner.show"
9997
label="Banner Enabled"
10098
color="primary"
10199
required
@@ -104,7 +102,7 @@
104102
<v-col
105103
cols="12"
106104
md="2"
107-
v-if="settings.kubero.banner.enabled"
105+
v-if="settings.kubero.banner.show"
108106
>
109107
<v-text-field
110108
v-model="settings.kubero.banner.bgcolor"
@@ -115,7 +113,7 @@
115113
<v-col
116114
cols="12"
117115
md="2"
118-
v-if="settings.kubero.banner.enabled"
116+
v-if="settings.kubero.banner.show"
119117
>
120118
<v-text-field
121119
v-model="settings.kubero.banner.fontcolor"
@@ -124,7 +122,7 @@
124122
></v-text-field>
125123
</v-col>
126124
</v-row>
127-
<v-row v-if="settings.kubero.banner.enabled">
125+
<v-row v-if="settings.kubero.banner.show">
128126
<v-col
129127
cols="12"
130128
md="6"
@@ -133,7 +131,6 @@
133131
v-model="settings.kubero.banner.message"
134132
label="Message"
135133
required
136-
readonly
137134
></v-text-field>
138135
</v-col>
139136
</v-row>
@@ -154,7 +151,7 @@ export type Kubero = {
154151
enabled: boolean,
155152
},
156153
banner: {
157-
enabled: boolean,
154+
show: boolean,
158155
bgcolor: string,
159156
fontcolor: string,
160157
message: string,

client/src/components/settings/form-podsizes.vue

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
v-model="podSize.name"
3333
label="Name"
3434
required
35+
readonly
3536
></v-text-field>
3637
</v-col>
3738
<v-col

client/src/components/settings/form-templates.vue

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
label="Name"
2727
required
2828
density="compact"
29+
readonly
2930
></v-text-field>
3031
</v-col>
3132
<v-col

client/src/components/settings/form.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default defineComponent({
127127
enabled: false,
128128
},
129129
banner: {
130-
enabled: false,
130+
show: false,
131131
bgcolor: "",
132132
fontcolor: "",
133133
message: "",

0 commit comments

Comments
 (0)