added repo link to func store. will open repo page on new window or tab

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This commit is contained in:
Ken Fukuyama
2017-12-16 00:12:48 +09:00
committed by Alex Ellis
parent 4d785c8dfb
commit cc103ada94
5 changed files with 19 additions and 2 deletions

View File

@ -17,7 +17,7 @@ funcStoreModule.component('funcStore', {
selectedFunc: '<',
onSelected: '&',
},
controller: ['FuncStoreService', '$mdDialog', function FuncStoreController(FuncStoreService, $mdDialog) {
controller: ['FuncStoreService', '$mdDialog', '$window', function FuncStoreController(FuncStoreService, $mdDialog, $window) {
var self = this;
this.storeUrl = 'https://raw.githubusercontent.com/openfaas/store/master/store.json';
@ -70,6 +70,10 @@ funcStoreModule.component('funcStore', {
);
}
this.openRepo = function (url) {
$window.open(url, '_blank');
}
this.loadStore();
}]