Update webpack-cli. Remove cache footer element.

parent 91fd717e
This diff is collapsed.
......@@ -87,7 +87,7 @@
"ts-node": "~6.0.3",
"tslint": "~5.10.0",
"typescript": "^2.7",
"webpack-cli": "^2.1.3"
"webpack-cli": "^2.1.4"
},
"keywords": [
"arsnova",
......
......@@ -35,7 +35,6 @@ export class AnsweroptionsComponent implements OnInit, OnDestroy {
this.footerBarService.replaceFooterElements([
this.footerBarService.footerElemBack,
this.footerBarService.footerElemNicknames,
this.footerBarService.footerElemSaveAssets,
this.footerBarService.footerElemProductTour,
]);
}
......
......@@ -73,7 +73,6 @@ export class CountdownComponent implements OnInit, OnDestroy {
this.footerBarService.replaceFooterElements([
this.footerBarService.footerElemBack,
this.footerBarService.footerElemNicknames,
this.footerBarService.footerElemSaveAssets,
this.footerBarService.footerElemProductTour,
]);
}
......
......@@ -35,7 +35,6 @@ export class QuestiontextComponent implements OnInit, OnDestroy {
this.footerBarService.replaceFooterElements([
this.footerBarService.footerElemBack,
this.footerBarService.footerElemNicknames,
this.footerBarService.footerElemSaveAssets,
this.footerBarService.footerElemProductTour,
]);
}
......
......@@ -40,7 +40,6 @@ export class QuestiontypeComponent implements OnInit, OnDestroy {
this.footerBarService.replaceFooterElements([
this.footerBarService.footerElemBack,
this.footerBarService.footerElemNicknames,
this.footerBarService.footerElemSaveAssets,
this.footerBarService.footerElemProductTour,
]);
}
......
......@@ -42,7 +42,6 @@ export class QuizManagerDetailsOverviewComponent implements OnInit, OnDestroy {
this.footerBarService.replaceFooterElements([
this.footerBarService.footerElemBack,
this.footerBarService.footerElemNicknames,
this.footerBarService.footerElemSaveAssets,
this.footerBarService.footerElemProductTour,
]);
}
......
......@@ -51,7 +51,6 @@ export class QuizManagerComponent implements OnDestroy {
this.footerBarService.footerElemStartQuiz,
this.footerBarService.footerElemProductTour,
this.footerBarService.footerElemNicknames,
this.footerBarService.footerElemSaveAssets,
this.footerBarService.footerElemMemberGroup,
]);
......
......@@ -73,9 +73,6 @@ export class ActiveQuestionGroupService {
this.footerBarService.footerElemEnableCasLogin.isActive = this.activeQuestionGroup.sessionConfig.nicks.restrictToCasLogin;
this.footerBarService.footerElemBlockRudeNicknames.isActive = this.activeQuestionGroup.sessionConfig.nicks.blockIllegalNicks;
if (window.localStorage.getItem('config.cache_assets') === 'true') {
this.footerBarService.footerElemSaveAssets.isActive = true;
}
this.footerBarService.footerElemEnableCasLogin.onClickCallback = () => {
const newState = !this.footerBarService.footerElemEnableCasLogin.isActive;
this.footerBarService.footerElemEnableCasLogin.isActive = newState;
......@@ -88,14 +85,6 @@ export class ActiveQuestionGroupService {
this.activeQuestionGroup.sessionConfig.nicks.blockIllegalNicks = newState;
this.persist();
};
this.footerBarService.footerElemSaveAssets.onClickCallback = () => {
const newState = !this.footerBarService.footerElemSaveAssets.isActive;
this.footerBarService.footerElemSaveAssets.isActive = newState;
this.settingsService.serverSettings.cacheQuizAssets = newState;
if (isPlatformBrowser(this.platformId)) {
window.localStorage.setItem('config.cache_assets', `${newState}`);
}
};
}
}
......
......@@ -225,6 +225,10 @@ export class FooterBarService {
linkTarget: null,
}, function (): void {
});
/*
* Currently unused since the server decides if it will cache the quiz contents
*/
public footerElemSaveAssets: IFooterBarElement = new FooterbarElement({
id: 'saveAssets',
iconClass: 'fas fa-cloud',
......@@ -235,6 +239,7 @@ export class FooterBarService {
linkTarget: null,
}, function (): void {
});
public footerElemBlockRudeNicknames: IFooterBarElement = new FooterbarElement({
id: 'blockRudeNicknames',
iconClass: 'fas fa-lock',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment