From e426b241923407fdacabbc7bf0bd2bb00383c4a2 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Fri, 19 Oct 2018 09:59:04 +0900 Subject: [PATCH] Add "host" column into images table view for admin Change-Id: Ia76d5bc53dd2d71897afc9fe214ca3c2111f06a9 Closes-Bug: #1798702 --- .../dashboard/container/images/images.module.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zun_ui/static/dashboard/container/images/images.module.js b/zun_ui/static/dashboard/container/images/images.module.js index fed0034..410a2bc 100644 --- a/zun_ui/static/dashboard/container/images/images.module.js +++ b/zun_ui/static/dashboard/container/images/images.module.js @@ -59,6 +59,7 @@ .setNames(gettext('Image'), gettext('Images')) // for detail summary view on table row. .setSummaryTemplateUrl(basePath + 'drawer.html') + .setDefaultIndexUrl('/admin/container/images/') // for table row items and detail summary view. .setProperties(imageProperties()) .setListFunction(imageService.getImagesPromise) @@ -80,6 +81,10 @@ id: 'size', priority: 1 }) + .append({ + id: 'host', + priority: 1 + }) .append({ id: 'image_id', priority: 3 @@ -100,6 +105,11 @@ 'name': 'tag', 'singleton': true }) + .append({ + 'label': gettext('Host'), + 'name': 'host', + 'singleton': true + }) .append({ 'label': gettext('ID'), 'name': 'id', @@ -122,6 +132,7 @@ 'id': {label: gettext('ID'), filters: ['noValue'] }, 'repo': { label: gettext('Image'), filters: ['noValue'] }, 'tag': { label: gettext('Tag'), filters: ['noValue'] }, + 'host': { label: gettext('Host'), filters: ['noValue'] }, 'size': { label: gettext('Size'), filters: ['noValue', 'bytes'] }, 'image_id': { label: gettext('Image ID'), filters: ['noValue'] }, 'project_id': { label: gettext('Project ID'), filters: ['noValue'] }