Cillian O'Ruanaidh
d90d352a86
Remove unused showMore angular directive
2022-12-16 12:55:28 +00:00
Maikel Linke
5b9d5a6bce
Avoid console error by catching potential fails
2021-10-06 15:51:43 +11:00
Matt-Yorkley
40531d769c
Update deprecated #success and #error methods on $http service
2021-08-10 16:22:47 +01:00
Andy Brett
5a19a14042
rename to v0
2021-03-27 11:21:18 -07:00
Cillian O'Ruanaidh
1fcf797d4e
Include sort direction parameter during bulk product update to prevent JS error causing 'Saving' text to hang
...
Before if you did a bulk product update there was an error:
> TypeError: Cannot set property 'variants' of null
It only seemed to happen if pagination was required i.e. more than 15 products. It seemed to be happening because the default sort order on the products API endpoint which handles the bulk update is 'created desc' but 'name asc' on the /admin/products controller.
Another fix included here is for the sorting direction arrows which were not displaying on the admin products page. The sorting arrows require the sorting expression to be on the :sorting var instead of :q.sorting.
Fixes #6399
2021-02-05 16:08:08 +00:00
Matt-Yorkley
ea9ebc8a33
Update Angular CSRF handling
2021-01-16 13:41:24 +00:00
Matt-Yorkley
4bb2653306
Tidy up pagination in Api::ProductsController#overridable and Angular PagedFetcher service
...
Refactors away some unnecessary mess and unblocks the last remaining issue in upgrading the Kaminari gem (deprecated calls to #num_pages method)
2021-01-05 18:57:08 +00:00
Matt-Yorkley
5bb2614f9d
Refactor PagedFetcher so it makes one request at a time
2020-04-09 09:19:37 +02:00
François Turbelin
e7b74b99ba
Refactor SortingOptions JS
2020-02-13 06:38:13 +01:00
luisramos0
8aab9bacbe
Delete now irrelevant authorize_api endpoint and logic
...
OFN API is now authenticating all users, if no session and no key is provided an anonymous user will be created so that user can access public endpoints, authorization is then done at each individual endpoint. This makes this spree api auth call irrelevant
2019-10-28 16:00:36 +00:00
Maikel Linke
5a5db3c458
Fix state of RequestMonitor
...
`@loading` was set to false when the request with the last id finished.
But another request started earlier (having a lower id) could take
longer. `@loading` was set to false even though these long requests were
still active.
2019-01-15 15:45:49 +11:00
Maikel Linke
ca9673f562
Fix Dereferencer service
...
It failed when `object[attr]` was `undefined` instead of `null`.
2019-01-15 15:43:00 +11:00
Maikel
933ff63de2
Merge pull request #2389 from luisramos0/bulk_prod_edit_fix
...
admin page fetcher is now synchronously fetching all pages before reso…
2018-07-26 14:09:21 +10:00
Kristina Lim
47608525c6
Reset reverse when clicking another column to sort
2018-07-23 10:33:40 +10:00
Kristina Lim
5179f7fd63
Move logic for toggling by column into SortOptions
2018-07-23 10:33:40 +10:00
Kristina Lim
55d0b1dfc5
Generalize sorting through SortOptions service
2018-07-23 10:33:40 +10:00
Kristina Lim
8b6b694244
Remove unused sorting preferences in ColumnsCtrl
2018-07-23 10:33:40 +10:00
Kristina Lim
9f09861d8b
Change sorting to be done in ascending order first
...
Currently, we always toggle "reverse" when triggering a sort.
If "reverse" is initially set to false, triggering a sort for the first
time then toggles this to true. The effect is that, the first time that
sorting is done, the rows are sorted in reverse order.
This is not intuitive - they should be sorted in ascending order first.
2018-07-23 10:33:39 +10:00
luisramos0
dfb510debe
admin page fetcher is now receiving a onLastPageComplete function that is used to show "no results" messages only after the last page is fetched
2018-07-13 15:01:43 +10:00
HugsDaniel
8c4d0f11d7
Changed status message with i18n t() filter to displau unsaved changes status for customers edition in admin dashboard
2018-03-13 21:03:54 +11:00
Rob Harrington
7581779a0d
Remove weird escape characters
2018-02-09 14:44:09 +11:00
Rob Harrington
27b22acd37
Fixing bug that caused references to stale DOM objects to be kept and used by Panels service
...
Was causing panels to break when used in conjuction with ng-repeat + filters
2018-02-09 14:43:48 +11:00
Rob Harrington
6934b87816
SO: Adding basic interface for Standing Order creation
2018-02-09 14:43:29 +11:00
Rob Harrington
987ad0df6c
Very basic Stripe Connect payment method interface
2017-09-23 14:57:02 +10:00
Julius Pabrinkis
739d06cf03
Extract translations from javascript
2017-07-21 12:17:12 +10:00
Rob Harrington
3678d4d018
Creating new 'resources' module for holding interdependent ngResource services
2016-11-25 10:37:01 +11:00
Rob Harrington
db93b74490
Refactoring ofnSelect2, works with multiple, and with promised data
2016-11-04 09:39:17 +11:00
Rohan Mitchell
d574b8943b
WIP: Cherry-pick b2d82b6 - Using ofnSelect2 instead of plain select on BOM
2016-11-04 09:39:17 +11:00
Bing Xie
7f203f5491
Show billing address and shipping address on customers index page
2016-08-12 14:44:59 +10:00
Rohan Mitchell
13c8f0a230
Improve spec reliability
...
It seems that the success message on the customers page is disappearing before the spec can
detect it. This seems unlikely since it's present for 3 s, but this is my best theory right now.
2016-07-06 15:29:04 +10:00
Rob Harrington
61969f5c84
Ensure CustomersController#update.json gives an appropriate response
...
pendingChanges submits an empty string when a field is blank (rather than undefined)
2016-06-16 22:42:53 +10:00
Rob Harrington
25cdd4af8e
Preventing shop from being changed when unsaved customer changes exist
...
Also making layout of filters on customer index more consistent with other pages
2016-06-16 15:10:16 +10:00
Rob Harrington
e81858c0dc
Renaming PanelToggleRow to PanelCtrl
2016-05-27 16:25:10 +10:00
Rob Harrington
8035b3f24a
Refactoring admin table panels infrastructure
...
Updating enterprise index
2016-05-27 16:25:10 +10:00
Rob Harrington
b804a70469
Columns service updates state of columns (especially id) when data received from server
...
Also showing saving status
2016-05-25 08:10:20 +10:00
Rob Harrington
f2de498d61
Show saved status of column preferences
2016-05-25 08:10:20 +10:00
Rob Harrington
1d8719b474
Default column visibility can be set per user using ColumnPreferences model
2016-05-25 08:10:20 +10:00
Rob Harrington
533a94267a
Refactoring save-bar
2016-05-25 08:10:20 +10:00
Rob Harrington
ecb9646ccb
Using new syntax for save-bar on customers page
2016-05-25 08:10:20 +10:00
Rob Harrington
564c1a3650
Improvements to customers page
...
Create customer from dialog
Limiting the number of products shown as once
Adding SaveBar and StatusMessage
2016-05-25 08:10:20 +10:00
Rob Harrington
af5eec7094
WIP (Angular 1.4 Upgrade): Adding filters to ofn-select2 and using on order create/edit UI
2016-05-25 08:10:20 +10:00
Rob Harrington
ed134bac84
Removing unrequired initSelection option from ofn-select2
2016-04-01 19:48:25 +11:00
Rob Harrington
28b143da73
WIP: Splitting Variant overrides into views
2016-03-02 12:10:22 +11:00
Rob Harrington
8f37aa0522
WIP: Adding Loading flash to variant overrides page
2016-03-02 12:10:22 +11:00
Rob Harrington
a66582a8fb
WIP: Using directive for EnterpriseFee index select elements, to properly bind data to the model
2016-03-02 11:56:46 +11:00
Rohan Mitchell
ae03170984
Sanitize input for ofn-select2
2016-02-24 11:26:38 +11:00
Rob Harrington
4553bc2997
Moving SaveBar directive and StatusMessage service into admin.utils module
2016-01-13 18:49:33 +11:00
Rob Harrington
54e7677888
Integrating StatusMessages into save-bar, adding to variant overrides index
2016-01-13 18:49:32 +11:00
Rob Harrington
c781113a65
Adding filters to variant overrides interface
2016-01-13 18:49:32 +11:00
Rob Harrington
4237a83028
Moving components required for variant overrides into appropriate modules
2016-01-13 18:49:32 +11:00