From: Stas Vilchik Date: Wed, 20 Jan 2016 08:23:01 +0000 (+0100) Subject: SONAR-7133 updade number of tokens on modal closing X-Git-Tag: 5.4-M9~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca3f4115aa71c3cf550246642784b3ac361c31a9;p=sonarqube.git SONAR-7133 updade number of tokens on modal closing --- diff --git a/server/sonar-web/src/main/js/apps/users/tokens-view.js b/server/sonar-web/src/main/js/apps/users/tokens-view.js index b1e697129ad..56c0b8e16f4 100644 --- a/server/sonar-web/src/main/js/apps/users/tokens-view.js +++ b/server/sonar-web/src/main/js/apps/users/tokens-view.js @@ -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,