Skip to content
Snippets Groups Projects
Commit c72e5b3a authored by Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt
Browse files

Move localStorageUsable initialization

parent 3f4997fb
No related branches found
No related tags found
1 merge request!35060Show security reports summary in pipelines' Security Dashboard
......@@ -24,7 +24,6 @@ export default {
},
data() {
return {
localStorageUsable: AccessorUtilities.isLocalStorageAccessSafe(),
isVisible: true,
};
},
......@@ -49,6 +48,7 @@ export default {
},
},
created() {
this.localStorageUsable = AccessorUtilities.isLocalStorageAccessSafe();
if (this.localStorageUsable) {
const shouldHideSummaryDetails = Boolean(localStorage.getItem(LOCAL_STORAGE_KEY));
this.isVisible = !shouldHideSummaryDetails;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment