Skip to content

Commit 99bc95d

Browse files
committed
fix cronjobs and volume forms
1 parent 5ee62ef commit 99bc95d

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

client/src/components/apps/form.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@
785785
<v-expansion-panel bg-color="rgb(var(--v-theme-cardBackground))">
786786
<v-expansion-panel-title class="text-uppercase text-caption-2 font-weight-medium" color="cardBackground">Volumes</v-expansion-panel-title>
787787
<v-expansion-panel-text color="cardBackground">
788-
<div v-for="volume in extraVolumes" v-bind:key="volume.name">
788+
<div v-for="(volume, index) in extraVolumes" :key="index">
789789
<v-row>
790790
<v-col
791791
cols="12"
@@ -846,12 +846,11 @@
846846
cols="12"
847847
md="3"
848848
>
849-
<v-switch
849+
<v-select
850850
v-model="volume.accessModes[0]"
851-
label="Read/Write Many"
852-
true-value="ReadWriteMany"
853-
false-value="ReadWriteOnce"
854-
></v-switch>
851+
:items="['ReadWriteOnce', 'ReadWriteMany', 'ReadOnlyMany']"
852+
label="Access Mode"
853+
></v-select>
855854
</v-col>
856855
</v-row>
857856
</div>
@@ -879,7 +878,7 @@
879878
<v-expansion-panel bg-color="rgb(var(--v-theme-cardBackground))">
880879
<v-expansion-panel-title class="text-uppercase text-caption-2 font-weight-medium" color="cardBackground">Cronjobs</v-expansion-panel-title>
881880
<v-expansion-panel-text color="cardBackground">
882-
<div v-for="cronjob in cronjobs" v-bind:key="cronjob.name">
881+
<div v-for="(cronjob, index) in cronjobs" :key="index">
883882
<v-row>
884883
<v-col
885884
cols="12"

server/src/modules/auth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export class Auth {
129129
debug.debug( JSON.stringify(profile));
130130

131131
const orgas = await axios.get(profile._json.organizations_url)
132-
133-
//const orgAllowd = process.env.GITHUB_ORG || false
132+
//console.log("orgas: "+JSON.stringify(orgas.data))
133+
//const orgAllowed = process.env.GITHUB_ORG || false
134134
const org = orgas.data.find((o: any) => {
135135
return o.login === process.env.GITHUB_CLIENT_ORG
136136
} )
@@ -144,8 +144,8 @@ export class Auth {
144144

145145
done(null, user);
146146
} else {
147-
console.log(profile.username+' is not in allowd organisation '+process.env.GITHUB_CLIENT_ORG)
148-
done(null, false, { message: 'Not in allowd organisation'})
147+
console.log(profile.username+' is not in allowed organisation '+process.env.GITHUB_CLIENT_ORG)
148+
done(null, false, { message: 'Not in allowed organisation'})
149149
}
150150
})
151151
);

0 commit comments

Comments
 (0)