diff --git a/src/Components/Request/VisibleElements.vue b/src/Components/Request/VisibleElements.vue
index cb6fc71a47..eda5f35eaf 100644
--- a/src/Components/Request/VisibleElements.vue
+++ b/src/Components/Request/VisibleElements.vue
@@ -42,8 +42,8 @@
:variant="variantOfSaveButton"
:wide="true"
:class="{ disabled: signerSelected }"
- @click="isDraft ? save() : showConfirm = true">
- {{ isDraft ? t('libresign', 'Save') : t('libresign', 'Send') }}
+ @click="save()">
+ {{ t('libresign', 'Save') }}
-
-
- {{ errorConfirmRequest }}
-
-
-
- {{ t('libresign', 'Cancel') }}
-
-
-
-
-
-
- {{ t('libresign', 'Send') }}
-
-
-
@@ -102,8 +77,6 @@ import NcDialog from '@nextcloud/vue/components/NcDialog'
import NcLoadingIcon from '@nextcloud/vue/components/NcLoadingIcon'
import NcNoteCard from '@nextcloud/vue/components/NcNoteCard'
-import Send from 'vue-material-design-icons/Send.vue'
-
import Chip from '../Chip.vue'
import PdfEditor from '../PdfEditor/PdfEditor.vue'
import Signer from '../Signers/Signer.vue'
@@ -121,7 +94,6 @@ export default {
NcButton,
NcLoadingIcon,
PdfEditor,
- Send,
},
setup() {
const filesStore = useFilesStore()
@@ -131,9 +103,7 @@ export default {
return {
canRequestSign: loadState('libresign', 'can_request_sign', false),
modal: false,
- showConfirm: false,
loading: false,
- errorConfirmRequest: '',
signerSelected: null,
width: getCapabilities().libresign.config['sign-elements']['full-signature-width'],
height: getCapabilities().libresign.config['sign-elements']['full-signature-height'],
@@ -204,7 +174,6 @@ export default {
this.filesStore.loading = true
},
closeModal() {
- this.errorConfirmRequest = ''
this.modal = false
this.filesStore.loading = false
},
@@ -306,26 +275,6 @@ export default {
return false
}
},
- async request() {
- this.loading = true
- this.errorConfirmRequest = ''
- const visibleElements = this.buildVisibleElements()
-
- try {
- const response = await this.filesStore.updateSignatureRequest({ visibleElements, status: 1 })
- this.filesStore.addFile(response.data)
- this.showConfirm = false
- showSuccess(t('libresign', response.message))
- this.closeModal()
- emit('libresign:visible-elements-saved')
- this.loading = false
- return true
- } catch (error) {
- this.errorConfirmRequest = error.response?.data?.ocs?.data?.message || t('libresign', 'An error occurred')
- this.loading = false
- return false
- }
- },
buildVisibleElements() {
const visibleElements = []
const scale = this.$refs.pdfEditor.$refs.vuePdfEditor.scale || 1
diff --git a/src/Components/RightSidebar/RequestSignatureTab.vue b/src/Components/RightSidebar/RequestSignatureTab.vue
index 996cc16561..3391749c23 100644
--- a/src/Components/RightSidebar/RequestSignatureTab.vue
+++ b/src/Components/RightSidebar/RequestSignatureTab.vue
@@ -134,6 +134,44 @@
+
+
+
+ {{ t('libresign', 'Cancel') }}
+
+
+
+
+
+
+ {{ t('libresign', 'Send') }}
+
+
+
+
+
+
+ {{ t('libresign', 'Cancel') }}
+
+
+
+
+
+
+ {{ t('libresign', 'Send') }}
+
+
+