From 664a232659a1ad88cf1442e96bd7876fcea44fbe Mon Sep 17 00:00:00 2001 From: Till Breuer Date: Mon, 30 Jun 2014 20:15:25 +0200 Subject: [PATCH] Add hack to update query highlight name (WIP) TODO add proper endpoints --- app/assets/javascripts/angular/services/query-service.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/angular/services/query-service.js b/app/assets/javascripts/angular/services/query-service.js index fcd94cd6e9..1ce1ad392c 100644 --- a/app/assets/javascripts/angular/services/query-service.js +++ b/app/assets/javascripts/angular/services/query-service.js @@ -354,6 +354,11 @@ angular.module('openproject.services') }); }, + updateHighlightName: function() { + // TODO Implement an API endpoint for updating the names or add an appropriate endpoint that returns query names for all highlighted queries + return this.unstarQuery().then(this.starQuery); + }, + doGet: function(url, success, failure) { return QueryService.doQuery(url, null, 'GET', success, failure); },