mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
chmod all files, rsync for deploy, cdn support, build page borked
This commit is contained in:
8
app/js/service-persist.js
Normal file → Executable file
8
app/js/service-persist.js
Normal file → Executable file
@@ -90,10 +90,10 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
||||
this.comparisons[name] = {
|
||||
facets: facets,
|
||||
builds: _.map(builds, function (b) { return {shipId: b.id, buildName: b.buildName }; })
|
||||
}
|
||||
};
|
||||
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
|
||||
this.state.hasComparisons = true;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* [getComparison description]
|
||||
@@ -105,7 +105,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
||||
return this.comparisons[name];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Removes the comparison from localstorage.
|
||||
@@ -117,7 +117,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
||||
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
|
||||
this.state.hasComparisons = Object.keys(this.comparisons).length > 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Delete all builds and comparisons from localStorage
|
||||
|
||||
Reference in New Issue
Block a user