Skip to content

Commit

Permalink
fix cronjobs and volume forms
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Jan 23, 2024
1 parent 5ee62ef commit 99bc95d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions client/src/components/apps/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@
<v-expansion-panel bg-color="rgb(var(--v-theme-cardBackground))">
<v-expansion-panel-title class="text-uppercase text-caption-2 font-weight-medium" color="cardBackground">Volumes</v-expansion-panel-title>
<v-expansion-panel-text color="cardBackground">
<div v-for="volume in extraVolumes" v-bind:key="volume.name">
<div v-for="(volume, index) in extraVolumes" :key="index">
<v-row>
<v-col
cols="12"
Expand Down Expand Up @@ -846,12 +846,11 @@
cols="12"
md="3"
>
<v-switch
<v-select
v-model="volume.accessModes[0]"
label="Read/Write Many"
true-value="ReadWriteMany"
false-value="ReadWriteOnce"
></v-switch>
:items="['ReadWriteOnce', 'ReadWriteMany', 'ReadOnlyMany']"
label="Access Mode"
></v-select>
</v-col>
</v-row>
</div>
Expand Down Expand Up @@ -879,7 +878,7 @@
<v-expansion-panel bg-color="rgb(var(--v-theme-cardBackground))">
<v-expansion-panel-title class="text-uppercase text-caption-2 font-weight-medium" color="cardBackground">Cronjobs</v-expansion-panel-title>
<v-expansion-panel-text color="cardBackground">
<div v-for="cronjob in cronjobs" v-bind:key="cronjob.name">
<div v-for="(cronjob, index) in cronjobs" :key="index">
<v-row>
<v-col
cols="12"
Expand Down
8 changes: 4 additions & 4 deletions server/src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export class Auth {
debug.debug( JSON.stringify(profile));

const orgas = await axios.get(profile._json.organizations_url)

//const orgAllowd = process.env.GITHUB_ORG || false
//console.log("orgas: "+JSON.stringify(orgas.data))
//const orgAllowed = process.env.GITHUB_ORG || false
const org = orgas.data.find((o: any) => {
return o.login === process.env.GITHUB_CLIENT_ORG
} )
Expand All @@ -144,8 +144,8 @@ export class Auth {

done(null, user);
} else {
console.log(profile.username+' is not in allowd organisation '+process.env.GITHUB_CLIENT_ORG)
done(null, false, { message: 'Not in allowd organisation'})
console.log(profile.username+' is not in allowed organisation '+process.env.GITHUB_CLIENT_ORG)
done(null, false, { message: 'Not in allowed organisation'})
}
})
);
Expand Down

0 comments on commit 99bc95d

Please sign in to comment.