Skip to content

Commit

Permalink
pass curl ssl problems to frontend, fixes #704
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Aug 9, 2023
1 parent 12911f0 commit ee7d4aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"require": {
"slim/slim": "^3.12",
"elan-ev/opencast-api": "^1.2",
"elan-ev/opencast-api": "^1.3",
"symfony/console": "^5.3"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/Models/REST/ServicesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ function getRESTComponents()
}
}

if ($response['code'] == 0) {
throw new \Exception($response['reason']);
}

return false;
}
}
9 changes: 6 additions & 3 deletions vueapp/components/Config/EditServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
</form>
<MessageList :float="true"/>
<Error :float="true"/>
</template>
<template v-slot:dialogButtons>
<button v-if="config !== null"
class="button trash"
type="button"
@click="deleteConfig"
class="button trash"
type="button"
@click="deleteConfig"
:disabled="disabled"
>
Löschen
Expand All @@ -53,6 +54,7 @@ import StudipDialog from '@studip/StudipDialog'
import StudipButton from "@studip/StudipButton";
import StudipIcon from "@studip/StudipIcon";
import MessageList from "@/components/MessageList";
import Error from "@/components/Error";
import ConfigOption from "@/components/Config/ConfigOption";
import WorkflowOptions from "@/components/Config/WorkflowOptions";
Expand All @@ -67,6 +69,7 @@ export default {
StudipDialog,
ConfigOption,
MessageList,
Error,
WorkflowOptions
},
Expand Down

0 comments on commit ee7d4aa

Please sign in to comment.