Remove unused app feedback dialog

This commit is contained in:
Johannes Zellner
2018-03-12 19:08:05 +01:00
parent 0c79c42c10
commit 0929ae1a4c
2 changed files with 1 additions and 68 deletions

View File

@@ -216,44 +216,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
version: ''
};
$scope.feedback = {
error: null,
subject: 'App feedback',
description: '',
type: 'app_missing',
reset: function () {
$scope.feedback.busy = false;
$scope.feedback.error = null;
$scope.feedback.description = '';
$scope.feedbackForm.$setUntouched();
$scope.feedbackForm.$setPristine();
},
show: function () {
$scope.feedback.reset();
$('#feedbackModal').modal('show');
},
submit: function () {
$scope.feedback.busy = true;
$scope.feedback.error = null;
Client.feedback($scope.feedback.type, $scope.feedback.subject, $scope.feedback.description, null, function (error) {
$scope.feedback.busy = false;
if (error) {
$scope.feedback.error = error;
console.error(error);
return;
}
$('#feedbackModal').modal('hide');
});
}
};
$scope.appstoreLogin = {
busy: false,
error: {},
@@ -578,7 +540,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
});
// setup all the dialog focus handling
['appInstallModal', 'feedbackModal'].forEach(function (id) {
['appInstallModal'].forEach(function (id) {
$('#' + id).on('shown.bs.modal', function () {
$(this).find("[autofocus]:first").focus();
});