From b8b51ed04c9312d8aa8a718c34017bd1d56b7849 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Tue, 31 Oct 2017 18:28:09 +0000 Subject: [PATCH] Fix app wall table app link (#1348) * Fix the app wall table app link - Default hashbang prefix is now '!' - Instead of adding '!', update to use ui-sref - See https://docs.angularjs.org/guide/migration#commit-aa077e8 * Fix lint issue * trivial change to retrigger pipeline * Fix lint --- .../list/table-view/table-view.directive.js | 11 ----------- .../view/applications/list/table-view/table-view.html | 2 +- .../applications/list/table-view.directive.spec.js | 5 ----- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.directive.js b/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.directive.js index 481a49c418..1081ab4818 100644 --- a/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.directive.js +++ b/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.directive.js @@ -87,19 +87,8 @@ } }); - this.getAppSummaryLink = getAppSummaryLink; this.stMiddleware = stMiddleware; - /** - * @name getAppSummaryLink - * @description Get link to application summary page - * @param {object} app The application object - * @returns {string} returns the link to the app summary page - */ - function getAppSummaryLink(app) { - return '#/cf/applications/' + app.clusterId + '/app/' + app.metadata.guid + '/summary'; - } - function stMiddleware(tableState) { var stSort = tableState.sort.predicate + '_' + !tableState.sort.reverse; var sort = model.currentSortOption + '_' + model.sortAscending; diff --git a/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.html b/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.html index ce643f3549..8bcde27a44 100644 --- a/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.html +++ b/components/cloud-foundry/frontend/src/view/applications/list/table-view/table-view.html @@ -26,7 +26,7 @@ - {{ app.entity.name }} + {{ app.entity.name }}
diff --git a/components/cloud-foundry/frontend/test/unit/view/applications/list/table-view.directive.spec.js b/components/cloud-foundry/frontend/test/unit/view/applications/list/table-view.directive.spec.js index 6c51154bb5..8cc775ae5e 100644 --- a/components/cloud-foundry/frontend/test/unit/view/applications/list/table-view.directive.spec.js +++ b/components/cloud-foundry/frontend/test/unit/view/applications/list/table-view.directive.spec.js @@ -38,11 +38,6 @@ expect(applicationsTableDirectiveCtrl).toBeDefined(); }); - it('should return correct URL', function () { - var urlString = applicationsTableDirectiveCtrl.getAppSummaryLink(apps[0]); - expect(urlString).toEqual('#/cf/applications/testGuid/app/appGuid/summary'); - }); - }); });