feat(xo-web/hub): delete template by namespace instead of ID (#4594)
This commit is contained in:
committed by
Julien Fontanet
parent
1eb0603b4e
commit
1e7bfec2ce
@@ -159,8 +159,8 @@ export default decorate([
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
installedTemplates: (_, { id, templates }) =>
|
||||
filter(templates, ['other.xo:resource:xva:id', id]),
|
||||
installedTemplates: (_, { namespace, templates }) =>
|
||||
filter(templates, ['other.xo:resource:namespace', namespace]),
|
||||
isTemplateInstalledOnAllPools: ({ installedTemplates }, { pools }) =>
|
||||
installedTemplates.length > 0 &&
|
||||
pools.every(
|
||||
|
||||
Reference in New Issue
Block a user