mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-07-10 08:29:17 +00:00
Move go function to taghistory-namespace within app.tag
This commit is contained in:
@@ -85,6 +85,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
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);
|
||||
};
|
||||
|
||||
@@ -16,14 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<tag-history-button>
|
||||
<a href="#" title="This will show the history of given tag"
|
||||
onclick="go('{ opts.image.name }', '{ opts.image.tag }');">
|
||||
onclick="registryUI.taghistory.go('{ opts.image.name }', '{ opts.image.tag }');">
|
||||
<i class="material-icons">history</i>
|
||||
</a>
|
||||
|
||||
<script type="text/javascript">
|
||||
go = function(image, tag) {
|
||||
route('/taghistory/image/' + image + '/tag/' + tag);
|
||||
};
|
||||
</script>
|
||||
|
||||
</tag-history-button>
|
||||
Reference in New Issue
Block a user