From bfa1f43ba8565f713e1fc70d8c2a48a016ea08d5 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Sat, 28 Mar 2020 15:07:42 +0100 Subject: [PATCH] Add transition to draggable for smother moves --- resources/js/views/Accounts.vue | 75 ++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 30 deletions(-) diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue index 607b4fda..5317f9ae 100644 --- a/resources/js/views/Accounts.vue +++ b/resources/js/views/Accounts.vue @@ -32,38 +32,40 @@ readyLabel: '', loadingLabel: 'refreshing' }" > --> - -
-
- -
-
- - -
-
-
-
-
- - {{ account.service }} - {{ account.account }} + + +
+
+ +
+
+ + +
+
+
+
+
+ + {{ account.service }} + {{ account.account }} +
+ +
+ + {{ $t('commons.edit') }} + +
+
+ +
+ +
+
- -
- - {{ $t('commons.edit') }} - -
-
- -
- -
-
-
+
@@ -153,6 +155,7 @@ form: new Form({ qrcode: null }), + drag: false, } }, @@ -256,6 +259,7 @@ }, saveOrder() { + this.drag = false this.axios.patch('/api/twofaccounts/reorder', {orderedIds: this.accounts.map(a => a.id)}) }, @@ -310,4 +314,15 @@ } }; - \ No newline at end of file + + + \ No newline at end of file