mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 20:46:41 +00:00
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:
@ -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();
|
||||
|
||||
}]
|
||||
|
Reference in New Issue
Block a user