]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7133 updade number of tokens on modal closing
authorStas Vilchik <vilchiks@gmail.com>
Wed, 20 Jan 2016 08:23:01 +0000 (09:23 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 20 Jan 2016 08:23:12 +0000 (09:23 +0100)
server/sonar-web/src/main/js/apps/users/tokens-view.js

index b1e697129ad5d8235be7d5759c8d58d1f8aa689e..56c0b8e16f4facbdc396a69acd3caacaa8fc6247 100644 (file)
@@ -96,6 +96,11 @@ export default Modal.extend({
     this.newToken = null;
   },
 
+  onDestroy: function () {
+    this.model.collection.refresh();
+    Modal.prototype.onDestroy.apply(this, arguments);
+  },
+
   serializeData() {
     return _.extend(Modal.prototype.serializeData.apply(this, arguments), {
       tokens: this.tokens,