mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-03 14:24:23 +01:00
30 lines
990 B
JavaScript
30 lines
990 B
JavaScript
/* eslint-disable
|
|
no-return-assign,
|
|
no-undef,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
/*
|
|
* decaffeinate suggestions:
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
*/
|
|
'use strict';
|
|
|
|
Application.Controllers.controller('AboutController', ['$scope', 'Setting', 'CustomAsset', function ($scope, Setting, CustomAsset) {
|
|
/* PUBLIC SCOPE */
|
|
|
|
Setting.get({ name: 'about_title' }, data => $scope.aboutTitle = data.setting);
|
|
|
|
Setting.get({ name: 'about_body' }, data => $scope.aboutBody = data.setting);
|
|
|
|
Setting.get({ name: 'about_contacts' }, data => $scope.aboutContacts = data.setting);
|
|
|
|
// retrieve the CGU
|
|
CustomAsset.get({ name: 'cgu-file' }, cgu => $scope.cgu = cgu.custom_asset);
|
|
|
|
// retrieve the CGV
|
|
return CustomAsset.get({ name: 'cgv-file' }, cgv => $scope.cgv = cgv.custom_asset);
|
|
}
|
|
]);
|