Remove all configure bits from the app grid page

This commit is contained in:
Johannes Zellner
2019-09-13 11:29:19 +02:00
parent 7a2a5d3846
commit 3d5cdd659b
4 changed files with 62 additions and 587 deletions

View File

@@ -4,6 +4,36 @@
/* global $ */
/* global asyncSeries */
// TODO use this once we enable custom SSL certificate ui again
// $scope.readCertificate = function (event) {
// $scope.$apply(function () {
// $scope.appConfigure.certificateFile = null;
// $scope.appConfigure.certificateFileName = event.target.files[0].name;
// var reader = new FileReader();
// reader.onload = function (result) {
// if (!result.target || !result.target.result) return console.error('Unable to read local file');
// $scope.appConfigure.certificateFile = result.target.result;
// };
// reader.readAsText(event.target.files[0]);
// });
// };
// $scope.readKey = function (event) {
// $scope.$apply(function () {
// $scope.appConfigure.keyFile = null;
// $scope.appConfigure.keyFileName = event.target.files[0].name;
// var reader = new FileReader();
// reader.onload = function (result) {
// if (!result.target || !result.target.result) return console.error('Unable to read local file');
// $scope.appConfigure.keyFile = result.target.result;
// };
// reader.readAsText(event.target.files[0]);
// });
// };
angular.module('Application').controller('AppController', ['$scope', '$location', '$timeout', '$interval', 'Client', function ($scope, $location, $timeout, $interval, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });