Skip to content

Commit

Permalink
Merge pull request #13057 from mkllnk/remove-local-storage
Browse files Browse the repository at this point in the history
Remove local storage
  • Loading branch information
dacook authored Jan 6, 2025
2 parents ab57618 + 558d4de commit a89d65c
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 622 deletions.
3 changes: 0 additions & 3 deletions app/assets/javascripts/admin/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,5 @@
// foundation
//= require ../shared/mm-foundation-tpls-0.9.0-20180826174721.min.js

// LocalStorage
//= require ../shared/angular-local-storage.js

// requires the rest of the JS code in this folder
//= require_tree .

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/javascripts/darkswarm/all.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#= require angular-google-maps.min.js
#= require ../shared/mm-foundation-tpls-0.9.0-20180826174721.min.js
#= require ../shared/ng-infinite-scroll.min.js
#= require ../shared/angular-local-storage.js
#= require ../shared/angular-slideables.js
#= require ../shared/shared
#= require_tree ../shared/directives
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/darkswarm/darkswarm.js.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
angular.module("Darkswarm", [
'ngResource',
'mm.foundation',
'LocalStorageModule',
'infinite-scroll',
'angular-flash.service',
'templates',
Expand Down
3 changes: 1 addition & 2 deletions app/assets/javascripts/darkswarm/services/cart.js.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
angular.module('Darkswarm').factory 'Cart', (CurrentOrder, Variants, $timeout, $http, $modal, $rootScope, $resource, localStorageService, Messages) ->
angular.module('Darkswarm').factory 'Cart', (CurrentOrder, Variants, $timeout, $http, $modal, $rootScope, $resource, Messages) ->
# Handles syncing of current cart/order state to server
new class Cart
dirty: false
Expand Down Expand Up @@ -113,7 +113,6 @@ angular.module('Darkswarm').factory 'Cart', (CurrentOrder, Variants, $timeout, $

clear: ->
@line_items = []
localStorageService.clearAll() # One day this will have to be moar GRANULAR

isOnlyItemInOrder: (id) =>
deletedItem = @line_items_finalised.find((item) -> item.id == id)
Expand Down
Loading

0 comments on commit a89d65c

Please sign in to comment.