GUAC-1053 New endpoint for listing languages, JS service for retrieving languages, and settings section for choosing language.

This commit is contained in:
James Muehlner committed 2015-04-22 22:39:57 -07:00
1 parent 5788876283
commit c2b2302708
9 files changed
+340 -15

No files matched your search

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2014 Glyptodon LLC
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -41,6 +41,13 @@ angular.module('rest').factory('cacheService', ['$injector',
*/
service.connections = $cacheFactory('API-CONNECTIONS');
/**
* Cache used by languageService.
*
* @type $cacheFactory.Cache
*/
service.languages = $cacheFactory('API-LANGUAGES');
/**
* Cache used by protocolService.
*
@@ -59,8 +66,9 @@ angular.module('rest').factory('cacheService', ['$injector',
* Clear all caches defined in this service.
*/
service.clearCaches = function clearCaches() {
service.protocols.removeAll();
service.connections.removeAll();
service.languages.removeAll();
service.protocols.removeAll();
service.users.removeAll();
};