diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-02-06 16:11:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 16:11:41 +0100 |
commit | cf9eb2f6a2bc594e3007eff1494817a42a6f2d35 (patch) | |
tree | 177cb35f5bc07f3811462a95c4137fc243c7ba48 /server/sonar-web/src/main/js/apps/groups/header-view.js | |
parent | 3c42d5d2e6b362d389c0058e069897bf26ef65f7 (diff) | |
download | sonarqube-cf9eb2f6a2bc594e3007eff1494817a42a6f2d35.tar.gz sonarqube-cf9eb2f6a2bc594e3007eff1494817a42a6f2d35.zip |
rewrite groups app with react (#3017)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups/header-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/header-view.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/header-view.js b/server/sonar-web/src/main/js/apps/groups/header-view.js deleted file mode 100644 index 42a317140f5..00000000000 --- a/server/sonar-web/src/main/js/apps/groups/header-view.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2018 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 CreateView from './create-view'; -import Template from './templates/groups-header.hbs'; - -export default Marionette.ItemView.extend({ - template: Template, - - collectionEvents: { - request: 'showSpinner', - sync: 'hideSpinner' - }, - - events: { - 'click #groups-create': 'onCreateClick' - }, - - showSpinner() { - this.$('.spinner').removeClass('hidden'); - }, - - hideSpinner() { - this.$('.spinner').addClass('hidden'); - }, - - onCreateClick(e) { - e.preventDefault(); - this.createGroup(); - }, - - createGroup() { - new CreateView({ - collection: this.collection - }).render(); - } -}); |