Skip to content

Commit 7eb50e1

Browse files
Dont show modal on edit and refresh clients
1 parent f696ae8 commit 7eb50e1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

resources/views/admin/auth-clients/index.blade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,13 @@
144144
}).then(response => {
145145
this.$refs.createEditAuthClient.hide();
146146
this.loading = false;
147-
this.secret = response.data.secret
148-
this.$refs.secretModal.show();
147+
if (response.data.secret) {
148+
this.secret = response.data.secret
149+
this.$refs.secretModal.show();
150+
}
151+
else {
152+
this.$refs.authClientList.fetch();
153+
}
149154
ProcessMaker.alert(this.$t("The auth client was ") + verb + ".", this.$t("success"))
150155
}).catch(error => {
151156
this.disabled = false;

0 commit comments

Comments
 (0)