From 246369fdec84f87e406aa8889b642a4e7e23a5c4 Mon Sep 17 00:00:00 2001 From: Lennart Blom Date: Sun, 2 Dec 2018 18:56:34 +0100 Subject: [PATCH] Move go function to taghistory-namespace within app.tag --- src/tags/app.tag | 5 +++++ src/tags/tag-history-button.tag | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tags/app.tag b/src/tags/app.tag index fb9344e..02a8226 100644 --- a/src/tags/app.tag +++ b/src/tags/app.tag @@ -85,6 +85,11 @@ along with this program. If not, see . route(''); } }; + + registryUI.taghistory.go = function(image, tag) { + route('/taghistory/image/' + image + '/tag/' + tag); + }; + registryUI.snackbar = function(message, isError) { registryUI.appTag.tags['material-snackbar'].addToast({'message': message, 'isError': isError}, 15000); }; diff --git a/src/tags/tag-history-button.tag b/src/tags/tag-history-button.tag index 3cf7500..ec0d509 100644 --- a/src/tags/tag-history-button.tag +++ b/src/tags/tag-history-button.tag @@ -16,14 +16,8 @@ along with this program. If not, see . --> + onclick="registryUI.taghistory.go('{ opts.image.name }', '{ opts.image.tag }');"> history - - \ No newline at end of file