aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/update-center/header-view.js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-20 14:41:27 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit4064ea3d8241568ccc7a1cf556bd8eeb0e92c5e9 (patch)
treecc8decbb83433f52abe259b798eb50b5b48a2dfd /server/sonar-web/src/main/js/apps/update-center/header-view.js
parent9538f9ae5502b33651f1d916ee69aaf74c121231 (diff)
downloadsonarqube-4064ea3d8241568ccc7a1cf556bd8eeb0e92c5e9.tar.gz
sonarqube-4064ea3d8241568ccc7a1cf556bd8eeb0e92c5e9.zip
Remove old updatecenter ui
Diffstat (limited to 'server/sonar-web/src/main/js/apps/update-center/header-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/update-center/header-view.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/server/sonar-web/src/main/js/apps/update-center/header-view.js b/server/sonar-web/src/main/js/apps/update-center/header-view.js
deleted file mode 100644
index cc0ac80a8c1..00000000000
--- a/server/sonar-web/src/main/js/apps/update-center/header-view.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import Marionette from 'backbone.marionette';
-import Template from './templates/update-center-header.hbs';
-import RestartModal from '../../components/RestartModal';
-
-export default Marionette.ItemView.extend({
- template: Template,
-
- collectionEvents: {
- all: 'render'
- },
-
- events: {
- 'click .js-restart': 'restart',
- 'click .js-cancel-all': 'cancelAll'
- },
-
- restart() {
- new RestartModal().render();
- },
-
- cancelAll() {
- this.collection.cancelAll();
- },
-
- serializeData() {
- return {
- ...Marionette.ItemView.prototype.serializeData.apply(this, arguments),
- installing: this.collection._installedCount,
- updating: this.collection._updatedCount,
- uninstalling: this.collection._uninstalledCount
- };
- }
-});