From ca3f4115aa71c3cf550246642784b3ac361c31a9 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 20 Jan 2016 09:23:01 +0100 Subject: [PATCH] SONAR-7133 updade number of tokens on modal closing --- server/sonar-web/src/main/js/apps/users/tokens-view.js | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.39.5