Bugzilla – Attachment 157520 Details for
Bug 34497
Vue - Dialog component should allow for confirmation input options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34497: [DO NOT PUSH] Test patch only
Bug-34497-DO-NOT-PUSH-Test-patch-only.patch (text/plain), 2.32 KB, created by
Martin Renvoize (ashimema)
on 2023-10-20 14:00:43 UTC
(
hide
)
Description:
Bug 34497: [DO NOT PUSH] Test patch only
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-10-20 14:00:43 UTC
Size:
2.32 KB
patch
obsolete
>From d13f2aacf59529198de78bef5e91a7d5adab7636 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 9 Aug 2023 08:37:57 +0000 >Subject: [PATCH] Bug 34497: [DO NOT PUSH] Test patch only > >Test plan (Apply both patches, including TEST PATCH): >1) Go to ERM /cgi-bin/koha/erm/agreements >2) Add a new agreement, with whatever values >3) Go back to agreements list, click 'delete' on that agreement >4) Verify the confirmation dialog now shows 2 inputs from the test patch >5) Change the values in the inputs and confirm the dialog >6) Notice that not only the agreement gets deleted, but console now shows the values submitted >7) Bonus: Test both Text and Date input types and required: true or false >--- > .../js/vue/components/ERM/AgreementsList.vue | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >index 50305dc21ab..d6b2758e3be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >@@ -196,8 +196,25 @@ export default { > message: agreement.name, > accept_label: this.$__("Yes, delete"), > cancel_label: this.$__("No, do not delete"), >+ inputs: [ >+ { >+ id: "text_input", >+ type: "Text", >+ value: "this is dummy text", >+ required: true, >+ label: this.$__("Text input"), >+ }, >+ { >+ id: "date_input", >+ type: "Date", >+ value: "2023-08-09", >+ required: true, >+ label: this.$__("Date input"), >+ }, >+ ], > }, >- () => { >+ callback_result => { >+ console.log(callback_result) > const client = APIClient.erm > client.agreements.delete(agreement.agreement_id).then( > success => { >-- >2.41.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34497
:
154319
|
154329
|
154332
|
154333
|
157519
|
157520
|
157521
|
157522
|
157527
|
157530
|
157531
|
157532