Skip to content

Commit

Permalink
show success message when request signs
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Nogueira <nogueiradeoliveira@gmail.com>
  • Loading branch information
hugouke committed Feb 1, 2024
1 parent 9dc812a commit 1c3b80d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Components/Request/VisibleElements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</template>

<script>
import { showError } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs'
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import { loadState } from '@nextcloud/initial-state'
Expand Down Expand Up @@ -234,7 +234,7 @@ export default {
})
})
})
await axios.patch(generateOcsUrl('/apps/libresign/api/v1/request-signature'), {
const response = await axios.patch(generateOcsUrl('/apps/libresign/api/v1/request-signature'), {
users: [],
// Only add to array if not empty
...(this.file.uuid && { uuid: this.file.uuid }),
Expand All @@ -243,6 +243,7 @@ export default {
status: 0,
})
this.showConfirm = false
showSuccess(t('libresign', response.data.message))
this.closeModal()
} catch (err) {
this.onError(err)
Expand Down

0 comments on commit 1c3b80d

Please sign in to comment.