feature/16-org-management #35

Merged
philipp merged 15 commits from feature/16-org-management into dev 2021-01-15 21:55:52 +00:00
Showing only changes of commit ce6002a631 - Show all commits

View File

@ -122,20 +122,20 @@
Delete</button>
<button
on:click={() => {
// RunnerOrganisationService.runnerOrganisationControllerRemove(o.id, false)
// .then((resp) => {
// current_organizations = current_organizations.filter((obj) => obj.id !== o.id);
// Toastify({
// text: 'Organization deleted',
// duration: 500,
// backgroundColor:
// 'linear-gradient(to right, #00b09b, #96c93d)',
// }).showToast();
// })
// .catch((err) => {
modal_open = true;
delete_org = o;
// });
RunnerOrganisationService.runnerOrganisationControllerRemove(o.id, false)
.then((resp) => {
current_organizations = current_organizations.filter((obj) => obj.id !== o.id);
Toastify({
text: 'Organization deleted',
duration: 500,
backgroundColor:
'linear-gradient(to right, #00b09b, #96c93d)',
}).showToast();
})
.catch((err) => {
modal_open = true;
delete_org = o;
});
}}
tabindex="0"
class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">Confirm